From: Arthur Schiwon Date: Fri, 11 Dec 2015 11:52:12 +0000 (+0100) Subject: adjust unit test X-Git-Tag: v9.0beta1~484^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aedbc0c6269aa16a733bd025aeb6d1a2360743fe;p=nextcloud-server.git adjust unit test --- diff --git a/apps/user_ldap/tests/user_ldap.php b/apps/user_ldap/tests/user_ldap.php index 7593371d85d..b08706c71d9 100644 --- a/apps/user_ldap/tests/user_ldap.php +++ b/apps/user_ldap/tests/user_ldap.php @@ -686,6 +686,14 @@ class Test_User_Ldap_Direct extends \Test\TestCase { return false; } })); + + $userMapper = $this->getMockBuilder('\OCA\User_LDAP\Mapping\UserMapping') + ->disableOriginalConstructor() + ->getMock(); + + $access->expects($this->any()) + ->method('getUserMapper') + ->will($this->returnValue($userMapper)); } public function testGetDisplayName() {