summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/User_LDAPTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/tests/User_LDAPTest.php')
-rw-r--r--apps/user_ldap/tests/User_LDAPTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php
index aaf67ebcab6..ced5009148d 100644
--- a/apps/user_ldap/tests/User_LDAPTest.php
+++ b/apps/user_ldap/tests/User_LDAPTest.php
@@ -135,6 +135,9 @@ class User_LDAPTest extends TestCase {
return false;
}
}));
+
+ $access->method('fetchUsersByLoginName')
+ ->willReturn([]);
}
/**
@@ -353,6 +356,9 @@ class User_LDAPTest extends TestCase {
$access->expects($this->any())
->method('nextcloudUserNames')
->will($this->returnArgument(0));
+
+ $access->method('fetchUsersByLoginName')
+ ->willReturn([]);
}
public function testGetUsersNoParam() {
@@ -760,6 +766,9 @@ class User_LDAPTest extends TestCase {
$access->expects($this->any())
->method('getUserMapper')
->will($this->returnValue($userMapper));
+
+ $access->method('fetchUsersByLoginName')
+ ->willReturn([]);
}
public function testGetDisplayName() {