diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-01-28 17:52:59 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-07-23 15:33:30 +0300 |
commit | 5d10c37b08c8df859eab5f7b338a82291951095f (patch) | |
tree | af32696edbc0c503ac322fd75eee7db10400b557 /apps/user_ldap/tests/group_ldap.php | |
parent | 0d5b4b95ef030e3ecc265c1e54673ca9df17dab4 (diff) |
fix counting of users in primary group
Diffstat (limited to 'apps/user_ldap/tests/group_ldap.php')
-rw-r--r-- | apps/user_ldap/tests/group_ldap.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/group_ldap.php index 8d15806be28..f2b16ee2eab 100644 --- a/apps/user_ldap/tests/group_ldap.php +++ b/apps/user_ldap/tests/group_ldap.php @@ -76,10 +76,15 @@ class Test_Group_Ldap extends \Test\TestCase { ->method('readAttribute') ->will($this->returnValue(array('u11', 'u22', 'u33', 'u34'))); + // for primary groups + $access->expects($this->once()) + ->method('countUsers') + ->will($this->returnValue(2)); + $groupBackend = new GroupLDAP($access); $users = $groupBackend->countUsersInGroup('group'); - $this->assertSame(4, $users); + $this->assertSame(6, $users); } public function testCountWithSearchString() { |