summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-16 10:35:47 +0200
committerLukas Reschke <lukas@owncloud.com>2015-10-16 10:37:08 +0200
commitd486949705f52481f4155804ba21fe7d68834395 (patch)
tree7f0b7ba1294734045fa3800c3d26baf4ac78b7f4 /apps/user_ldap/tests
parent733542a26420fb3b1277a23947bc895c595d1a07 (diff)
downloadnextcloud-server-d486949705f52481f4155804ba21fe7d68834395.tar.gz
nextcloud-server-d486949705f52481f4155804ba21fe7d68834395.zip
Adjust unit tests
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r--apps/user_ldap/tests/group_ldap.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/group_ldap.php
index 8ed2bc5c677..49af5e3fe34 100644
--- a/apps/user_ldap/tests/group_ldap.php
+++ b/apps/user_ldap/tests/group_ldap.php
@@ -42,14 +42,9 @@ class Test_Group_Ldap extends \Test\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'),
- $this->getMock('\OCP\IDBConnection')
- );
+ $um = $this->getMockBuilder('\OCA\user_ldap\lib\user\Manager')
+ ->disableOriginalConstructor()
+ ->getMock();
$access = $this->getMock('\OCA\user_ldap\lib\Access',
$accMethods,
array($connector, $lw, $um));