summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/AccessTest.php
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2016-09-27 23:54:37 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-13 01:06:45 +0200
commitc4fcd1f282132cdea2cb97c162b2b461e022390a (patch)
tree5ac3d78f541bebc375ec93d1ee447027c5d5689d /apps/user_ldap/tests/AccessTest.php
parent011d5f554c1fcc2896c8798c9ef29b59af7b2692 (diff)
downloadnextcloud-server-c4fcd1f282132cdea2cb97c162b2b461e022390a.tar.gz
nextcloud-server-c4fcd1f282132cdea2cb97c162b2b461e022390a.zip
Update tests for phunit 5.5
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests/AccessTest.php')
-rw-r--r--apps/user_ldap/tests/AccessTest.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/user_ldap/tests/AccessTest.php b/apps/user_ldap/tests/AccessTest.php
index eb660afee70..f7b6fa36334 100644
--- a/apps/user_ldap/tests/AccessTest.php
+++ b/apps/user_ldap/tests/AccessTest.php
@@ -55,11 +55,11 @@ class AccessTest extends \Test\TestCase {
$umMethods = get_class_methods('\OCA\User_LDAP\User\Manager');
}
$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(
+ $connector = $this->getMockBuilder('\OCA\User_LDAP\Connection')
+ ->setMethods($conMethods)
+ ->setConstructorArgs([$lw, null, null])
+ ->getMock();
+ $um = $this->getMockBuilder('\OCA\User_LDAP\User\Manager')
$this->createMock(IConfig::class),
$this->createMock(FilesystemHelper::class),
$this->createMock(LogWrapper::class),
@@ -68,6 +68,9 @@ class AccessTest extends \Test\TestCase {
$this->createMock(IDBConnection::class),
$this->createMock(IUserManager::class)));
$helper = new \OCA\User_LDAP\Helper(\OC::$server->getConfig());
+ $this->createMock('\OCP\IUserManager')
+ ])
+ ->getMock();
return array($lw, $connector, $um, $helper);
}