adjust unit test

This commit is contained in:
Arthur Schiwon 2015-12-11 12:52:12 +01:00
parent 4020d5b77a
commit aedbc0c626
1 changed files with 8 additions and 0 deletions

View File

@ -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() {