diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-12 16:35:33 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-25 16:04:59 +0200 |
commit | af0a6961b1ae867e354ecf71d61708af9618c44f (patch) | |
tree | 6f5805dc9d1055d9be985f69d0b223a8daa15944 /apps/user_ldap/tests | |
parent | 387019a212224ffbd4300576b9c28e61d5e021a6 (diff) | |
download | nextcloud-server-af0a6961b1ae867e354ecf71d61708af9618c44f.tar.gz nextcloud-server-af0a6961b1ae867e354ecf71d61708af9618c44f.zip |
Move Connection to PSR-4
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r-- | apps/user_ldap/tests/GroupLDAPTest.php | 6 | ||||
-rw-r--r-- | apps/user_ldap/tests/User/ManagerTest.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/tests/User/UserTest.php | 4 | ||||
-rw-r--r-- | apps/user_ldap/tests/User_LDAPTest.php | 6 | ||||
-rw-r--r-- | apps/user_ldap/tests/WizardTest.php | 4 | ||||
-rw-r--r-- | apps/user_ldap/tests/access.php | 6 | ||||
-rw-r--r-- | apps/user_ldap/tests/connection.php | 4 | ||||
-rw-r--r-- | apps/user_ldap/tests/integration/abstractintegrationtest.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/tests/integration/lib/IntegrationTestAccessGroupsMatchFilter.php | 2 |
9 files changed, 18 insertions, 18 deletions
diff --git a/apps/user_ldap/tests/GroupLDAPTest.php b/apps/user_ldap/tests/GroupLDAPTest.php index f4185b2ae3a..b8aa4ff5591 100644 --- a/apps/user_ldap/tests/GroupLDAPTest.php +++ b/apps/user_ldap/tests/GroupLDAPTest.php @@ -28,7 +28,7 @@ namespace OCA\User_LDAP\Tests; use OCA\User_LDAP\Group_LDAP as GroupLDAP; use \OCA\user_ldap\lib\Access; -use \OCA\user_ldap\lib\Connection; +use \OCA\User_LDAP\Connection; /** * Class GroupLDAPTest @@ -43,11 +43,11 @@ class GroupLDAPTest extends \Test\TestCase { static $accMethods; if(is_null($conMethods) || is_null($accMethods)) { - $conMethods = get_class_methods('\OCA\user_ldap\lib\Connection'); + $conMethods = get_class_methods('\OCA\User_LDAP\Connection'); $accMethods = get_class_methods('\OCA\user_ldap\lib\Access'); } $lw = $this->getMock('\OCA\User_LDAP\ILDAPWrapper'); - $connector = $this->getMock('\OCA\user_ldap\lib\Connection', + $connector = $this->getMock('\OCA\User_LDAP\Connection', $conMethods, array($lw, null, null)); $um = $this->getMockBuilder('\OCA\User_LDAP\User\Manager') diff --git a/apps/user_ldap/tests/User/ManagerTest.php b/apps/user_ldap/tests/User/ManagerTest.php index 478cd2aca8c..09eff64b9b1 100644 --- a/apps/user_ldap/tests/User/ManagerTest.php +++ b/apps/user_ldap/tests/User/ManagerTest.php @@ -46,7 +46,7 @@ class ManagerTest extends \Test\TestCase { $dbc = $this->getMock('\OCP\IDBConnection'); $userMgr = $this->getMock('\OCP\IUserManager'); - $connection = new \OCA\user_ldap\lib\Connection( + $connection = new \OCA\User_LDAP\Connection( $lw = $this->getMock('\OCA\User_LDAP\ILDAPWrapper'), '', null diff --git a/apps/user_ldap/tests/User/UserTest.php b/apps/user_ldap/tests/User/UserTest.php index 63854685023..9d165c7f29e 100644 --- a/apps/user_ldap/tests/User/UserTest.php +++ b/apps/user_ldap/tests/User/UserTest.php @@ -55,7 +55,7 @@ class UserTest extends \Test\TestCase { static $umMethods; if(is_null($conMethods) || is_null($accMethods)) { - $conMethods = get_class_methods('\OCA\user_ldap\lib\Connection'); + $conMethods = get_class_methods('\OCA\User_LDAP\Connection'); $accMethods = get_class_methods('\OCA\user_ldap\lib\Access'); //getConnection shall not be replaced unset($accMethods[array_search('getConnection', $accMethods)]); @@ -68,7 +68,7 @@ class UserTest extends \Test\TestCase { } $um = $this->getMock('\OCA\User_LDAP\User\Manager', $umMethods, array($cfMock, $fsMock, $logMock, $avaMgr, $im, $dbc, $userMgr)); - $connector = $this->getMock('\OCA\user_ldap\lib\Connection', + $connector = $this->getMock('\OCA\User_LDAP\Connection', $conMethods, array($lw, null, null)); $access = $this->getMock('\OCA\user_ldap\lib\Access', $accMethods, array($connector, $lw, $um)); diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php index de634f21315..748b8f83706 100644 --- a/apps/user_ldap/tests/User_LDAPTest.php +++ b/apps/user_ldap/tests/User_LDAPTest.php @@ -29,7 +29,7 @@ namespace OCA\User_LDAP\Tests; use OCA\User_LDAP\User_LDAP as UserLDAP; use \OCA\user_ldap\lib\Access; -use \OCA\user_ldap\lib\Connection; +use \OCA\User_LDAP\Connection; /** * Class Test_User_Ldap_Direct @@ -56,7 +56,7 @@ class User_LDAPTest extends \Test\TestCase { static $uMethods; if(is_null($conMethods) || is_null($accMethods)) { - $conMethods = get_class_methods('\OCA\user_ldap\lib\Connection'); + $conMethods = get_class_methods('\OCA\User_LDAP\Connection'); $accMethods = get_class_methods('\OCA\user_ldap\lib\Access'); unset($accMethods[array_search('getConnection', $accMethods)]); $uMethods = get_class_methods('\OCA\User_LDAP\User\User'); @@ -65,7 +65,7 @@ class User_LDAPTest extends \Test\TestCase { unset($uMethods[array_search('__construct', $uMethods)]); } $lw = $this->getMock('\OCA\User_LDAP\ILDAPWrapper'); - $connector = $this->getMock('\OCA\user_ldap\lib\Connection', + $connector = $this->getMock('\OCA\User_LDAP\Connection', $conMethods, array($lw, null, null)); diff --git a/apps/user_ldap/tests/WizardTest.php b/apps/user_ldap/tests/WizardTest.php index f74defa8ae2..f0767ea635a 100644 --- a/apps/user_ldap/tests/WizardTest.php +++ b/apps/user_ldap/tests/WizardTest.php @@ -60,7 +60,7 @@ class WizardTest extends \Test\TestCase { if(is_null($confMethods)) { $confMethods = get_class_methods('\OCA\user_ldap\lib\Configuration'); - $connMethods = get_class_methods('\OCA\user_ldap\lib\Connection'); + $connMethods = get_class_methods('\OCA\User_LDAP\Connection'); $accMethods = get_class_methods('\OCA\user_ldap\lib\Access'); } $lw = $this->getMock('\OCA\User_LDAP\ILDAPWrapper'); @@ -68,7 +68,7 @@ class WizardTest extends \Test\TestCase { $confMethods, array($lw, null, null)); - $connector = $this->getMock('\OCA\user_ldap\lib\Connection', + $connector = $this->getMock('\OCA\User_LDAP\Connection', $connMethods, array($lw, null, null)); $um = $this->getMockBuilder('\OCA\User_LDAP\User\Manager') ->disableOriginalConstructor() diff --git a/apps/user_ldap/tests/access.php b/apps/user_ldap/tests/access.php index bf80ac6af91..1578e0ffad2 100644 --- a/apps/user_ldap/tests/access.php +++ b/apps/user_ldap/tests/access.php @@ -26,7 +26,7 @@ namespace OCA\user_ldap\tests; use \OCA\user_ldap\lib\Access; -use \OCA\user_ldap\lib\Connection; +use \OCA\User_LDAP\Connection; /** * Class Test_Access @@ -42,12 +42,12 @@ class Test_Access extends \Test\TestCase { static $umMethods; if(is_null($conMethods) || is_null($accMethods)) { - $conMethods = get_class_methods('\OCA\user_ldap\lib\Connection'); + $conMethods = get_class_methods('\OCA\User_LDAP\Connection'); $accMethods = get_class_methods('\OCA\user_ldap\lib\Access'); $umMethods = get_class_methods('\OCA\User_LDAP\User\Manager'); } $lw = $this->getMock('\OCA\User_LDAP\ILDAPWrapper'); - $connector = $this->getMock('\OCA\user_ldap\lib\Connection', + $connector = $this->getMock('\OCA\User_LDAP\Connection', $conMethods, array($lw, null, null)); $um = $this->getMock('\OCA\User_LDAP\User\Manager', diff --git a/apps/user_ldap/tests/connection.php b/apps/user_ldap/tests/connection.php index e93009ee8ff..2c87d41cfa1 100644 --- a/apps/user_ldap/tests/connection.php +++ b/apps/user_ldap/tests/connection.php @@ -23,7 +23,7 @@ */ namespace OCA\user_ldap\tests; -use OCA\user_ldap\lib\Connection; +use OCA\User_LDAP\Connection; /** * Class Test_Connection @@ -44,7 +44,7 @@ class Test_Connection extends \Test\TestCase { $this->ldap = $this->getMock('\OCA\User_LDAP\ILDAPWrapper'); // we use a mock here to replace the cache mechanism, due to missing DI in LDAP backend. - $this->connection = $this->getMockBuilder('OCA\user_ldap\lib\Connection') + $this->connection = $this->getMockBuilder('OCA\User_LDAP\Connection') ->setMethods(['getFromCache', 'writeToCache']) ->setConstructorArgs([$this->ldap, '', null]) ->getMock(); diff --git a/apps/user_ldap/tests/integration/abstractintegrationtest.php b/apps/user_ldap/tests/integration/abstractintegrationtest.php index 73b4d6667d7..e5ecad75ba0 100644 --- a/apps/user_ldap/tests/integration/abstractintegrationtest.php +++ b/apps/user_ldap/tests/integration/abstractintegrationtest.php @@ -22,7 +22,7 @@ namespace OCA\user_ldap\tests\integration; use OCA\user_ldap\lib\Access; -use OCA\user_ldap\lib\Connection; +use OCA\User_LDAP\Connection; use OCA\User_LDAP\LDAP; use OCA\User_LDAP\User\Manager; diff --git a/apps/user_ldap/tests/integration/lib/IntegrationTestAccessGroupsMatchFilter.php b/apps/user_ldap/tests/integration/lib/IntegrationTestAccessGroupsMatchFilter.php index af553c01728..829dc2e0a48 100644 --- a/apps/user_ldap/tests/integration/lib/IntegrationTestAccessGroupsMatchFilter.php +++ b/apps/user_ldap/tests/integration/lib/IntegrationTestAccessGroupsMatchFilter.php @@ -21,7 +21,7 @@ namespace OCA\user_ldap\tests\integration\lib; -use OCA\user_ldap\lib\Connection; +use OCA\User_LDAP\Connection; use OCA\user_ldap\tests\integration\AbstractIntegrationTest; require_once __DIR__ . '/../../../../../lib/base.php'; |