aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/group_ldap.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-28 11:44:21 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-28 11:44:21 +0200
commit0479cefec36fc5eca56e05c0984400c32de72ee5 (patch)
treeb11211d1447f1bc0280a29b387957d066399ca84 /apps/user_ldap/tests/group_ldap.php
parentc300394348ea0420ceecef46de9ed82babaff7c1 (diff)
parent002b6bf059377853dc174c1d49792e62983c4bec (diff)
downloadnextcloud-server-0479cefec36fc5eca56e05c0984400c32de72ee5.tar.gz
nextcloud-server-0479cefec36fc5eca56e05c0984400c32de72ee5.zip
Merge pull request #18469 from owncloud/ldap-batch-read-attrs-ng
read all relevant user attributes on login and user search, in one qu…
Diffstat (limited to 'apps/user_ldap/tests/group_ldap.php')
-rw-r--r--apps/user_ldap/tests/group_ldap.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/group_ldap.php
index 805238e7d37..7007afd5162 100644
--- a/apps/user_ldap/tests/group_ldap.php
+++ b/apps/user_ldap/tests/group_ldap.php
@@ -53,6 +53,10 @@ class Test_Group_Ldap extends \Test\TestCase {
$accMethods,
array($connector, $lw, $um));
+ $access->expects($this->any())
+ ->method('getConnection')
+ ->will($this->returnValue($connector));
+
return $access;
}
@@ -391,7 +395,7 @@ class Test_Group_Ldap extends \Test\TestCase {
$access->connection->hasPrimaryGroups = false;
- $access->expects($this->once())
+ $access->expects($this->any())
->method('username2dn')
->will($this->returnValue($dn));