public function setUp()
 {
     parent::setUp();
     $plugins = Config::getInstance()->Plugins;
     $plugins['Plugins'][] = 'LoginLdap';
     Config::getInstance()->Plugins = $plugins;
     $application = new Console(self::$fixture->piwikEnvironment);
     $application->setAutoExit(false);
     $this->applicationTester = new ApplicationTester($application);
 }
 public function setUp()
 {
     parent::setUp();
     $this->addNonLdapUsers();
     $this->addPreexistingLdapUser();
     $plugins = Config::getInstance()->Plugins;
     $plugins['Plugins'][] = 'LoginLdap';
     Config::getInstance()->Plugins = $plugins;
     $application = new Console(self::$fixture->piwikEnvironment);
     $application->setAutoExit(false);
     $this->applicationTester = new ApplicationTester($application);
     Translate::loadEnglishTranslation();
     // needed due to travis build that tests against minimum required piwik
 }
 public function setUp()
 {
     parent::setUp();
     Config::getInstance()->LoginLdap_dummyserver1 = array('hostname' => "notanldaphost.com", 'port' => self::SERVER_PORT, 'base_dn' => self::SERVER_BASE_DN, 'admin_user' => 'cn=fury,' . self::SERVER_BASE_DN, 'admin_pass' => 'secrets');
     Config::getInstance()->LoginLdap_dummyserver2 = array('hostname' => "localhost", 'port' => 999, 'base_dn' => self::SERVER_BASE_DN, 'admin_user' => 'cn=fury,' . self::SERVER_BASE_DN, 'admin_pass' => 'secrets');
 }
Esempio n. 4
0
 public function setUp()
 {
     parent::setUp();
     $this->api = new API();
 }
 public function setUp()
 {
     parent::setUp();
     $this->addPreexistingSuperUser();
 }
 public function tearDown()
 {
     Access::getInstance()->setSuperUserAccess(true);
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     Config::getInstance()->LoginLdap = array('serverUrl' => @Config::getInstance()->LoginLdap_testserver['hostname'] ?: self::SERVER_HOST_NAME, 'ldapPort' => @Config::getInstance()->LoginLdap_testserver['port'] ?: self::SERVER_PORT, 'baseDn' => self::SERVER_BASE_DN, 'adminUser' => 'cn=fury,' . self::SERVER_BASE_DN, 'adminPass' => 'secrets', 'useKerberos' => 'false');
     UsersManagerAPI::getInstance()->addUser(self::TEST_LOGIN, self::TEST_PASS, '*****@*****.**', $alias = false);
 }