diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-11 12:52:12 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-11 12:52:12 +0100 |
commit | aedbc0c6269aa16a733bd025aeb6d1a2360743fe (patch) | |
tree | b02abbcc9835e53234a6476b056960dd80822d1a /apps/user_ldap/tests | |
parent | 4020d5b77a249e75ae81f5c3646db5692488a812 (diff) | |
download | nextcloud-server-aedbc0c6269aa16a733bd025aeb6d1a2360743fe.tar.gz nextcloud-server-aedbc0c6269aa16a733bd025aeb6d1a2360743fe.zip |
adjust unit test
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r-- | apps/user_ldap/tests/user_ldap.php | 8 |
1 files changed, 8 insertions, 0 deletions
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() { |