diff options
-rw-r--r-- | apps/provisioning_api/tests/groupstest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/tests/groupstest.php b/apps/provisioning_api/tests/groupstest.php index 9e9824f3645..73044e33120 100644 --- a/apps/provisioning_api/tests/groupstest.php +++ b/apps/provisioning_api/tests/groupstest.php @@ -63,7 +63,7 @@ class GroupsTest extends TestCase { $result = $this->api->getGroups([]); $this->assertInstanceOf('OC_OCS_Result', $result); $this->assertTrue($result->succeeded()); - $this->assertCount(11, $result->getData()['groups']); + $this->assertCount(count($this->groupManager->search('')), $result->getData()['groups']); $this->assertContains('admin', $result->getData()['groups']); foreach ($groups as $group) { $this->assertContains($group->getGID(), $result->getData()['groups']); |