aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-25 18:52:13 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-03 12:59:11 +0200
commitba82d80f32e2c2924ee5a407d52c7a134be9ed51 (patch)
tree83fa19b6b48c3f83614761a8da6e0b081199e915 /apps/user_ldap/tests
parent3fed96af0ee3c7b3159df8cad73dd1830d08208c (diff)
downloadnextcloud-server-ba82d80f32e2c2924ee5a407d52c7a134be9ed51.tar.gz
nextcloud-server-ba82d80f32e2c2924ee5a407d52c7a134be9ed51.zip
adjust group tests
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r--apps/user_ldap/tests/group_ldap.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/group_ldap.php
index ecbd42319e3..1184fe1e82e 100644
--- a/apps/user_ldap/tests/group_ldap.php
+++ b/apps/user_ldap/tests/group_ldap.php
@@ -42,9 +42,16 @@ class Test_Group_Ldap extends \PHPUnit_Framework_TestCase {
$connector = $this->getMock('\OCA\user_ldap\lib\Connection',
$conMethods,
array($lw, null, null));
+ $um = new \OCA\user_ldap\lib\user\Manager(
+ $this->getMock('\OCP\IConfig'),
+ $this->getMock('\OCA\user_ldap\lib\FilesystemHelper'),
+ $this->getMock('\OCA\user_ldap\lib\LogWrapper'),
+ $this->getMock('\OCP\IAvatarManager'),
+ $this->getMock('\OCP\Image')
+ );
$access = $this->getMock('\OCA\user_ldap\lib\Access',
$accMethods,
- array($connector, $lw));
+ array($connector, $lw, $um));
return $access;
}
@@ -112,4 +119,4 @@ class Test_Group_Ldap extends \PHPUnit_Framework_TestCase {
$this->assertSame(2, $users);
}
-} \ No newline at end of file
+}