From aedbc0c6269aa16a733bd025aeb6d1a2360743fe Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 11 Dec 2015 12:52:12 +0100 Subject: [PATCH] adjust unit test --- apps/user_ldap/tests/user_ldap.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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() { -- 2.39.5