|
|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|