diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-02 11:02:12 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-09-06 09:29:27 +0200 |
commit | 5fb2eee5df6bfbe3d608709fbe6997860fe4d648 (patch) | |
tree | c94f53f8128e92268ff10755066f3d0d2ef76b38 /apps/user_ldap/tests/AccessTest.php | |
parent | 798dd401391bc9d88292b50f9a17f01546f70624 (diff) | |
download | nextcloud-server-5fb2eee5df6bfbe3d608709fbe6997860fe4d648.tar.gz nextcloud-server-5fb2eee5df6bfbe3d608709fbe6997860fe4d648.zip |
Fix getMock user_ldap
Diffstat (limited to 'apps/user_ldap/tests/AccessTest.php')
-rw-r--r-- | apps/user_ldap/tests/AccessTest.php | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/apps/user_ldap/tests/AccessTest.php b/apps/user_ldap/tests/AccessTest.php index 5e99583c70f..08e7c9f79f5 100644 --- a/apps/user_ldap/tests/AccessTest.php +++ b/apps/user_ldap/tests/AccessTest.php @@ -28,6 +28,14 @@ namespace OCA\User_LDAP\Tests; use OCA\User_LDAP\Access; use OCA\User_LDAP\Connection; +use OCA\User_LDAP\FilesystemHelper; +use OCA\User_LDAP\ILDAPWrapper; +use OCA\User_LDAP\LogWrapper; +use OCP\IAvatarManager; +use OCP\IConfig; +use OCP\IDBConnection; +use OCP\Image; +use OCP\IUserManager; /** * Class AccessTest @@ -47,19 +55,19 @@ class AccessTest extends \Test\TestCase { $accMethods = get_class_methods('\OCA\User_LDAP\Access'); $umMethods = get_class_methods('\OCA\User_LDAP\User\Manager'); } - $lw = $this->getMock('\OCA\User_LDAP\ILDAPWrapper'); + $lw = $this->createMock(ILDAPWrapper::class); $connector = $this->getMock('\OCA\User_LDAP\Connection', $conMethods, array($lw, null, null)); $um = $this->getMock('\OCA\User_LDAP\User\Manager', $umMethods, array( - $this->getMock('\OCP\IConfig'), - $this->getMock('\OCA\User_LDAP\FilesystemHelper'), - $this->getMock('\OCA\User_LDAP\LogWrapper'), - $this->getMock('\OCP\IAvatarManager'), - $this->getMock('\OCP\Image'), - $this->getMock('\OCP\IDBConnection'), - $this->getMock('\OCP\IUserManager'))); + $this->createMock(IConfig::class), + $this->createMock(FilesystemHelper::class), + $this->createMock(LogWrapper::class), + $this->createMock(IAvatarManager::class), + $this->createMock(Image::class), + $this->createMock(IDBConnection::class), + $this->createMock(IUserManager::class))); $helper = new \OCA\User_LDAP\Helper(); return array($lw, $connector, $um, $helper); |