diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-09-11 11:11:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 11:11:00 +0200 |
commit | 4f1e5bc8fd4d611ef1c09bd8e0930566fb2cf26b (patch) | |
tree | 9eab222a064eacd9534cc320d33a83341e01a0ae /tests | |
parent | aa241df161054588293dde038104e670626f88e5 (diff) | |
parent | d18bb7e9bb0b350f65157f648e0c5c8c8f0282cf (diff) | |
download | nextcloud-server-4f1e5bc8fd4d611ef1c09bd8e0930566fb2cf26b.tar.gz nextcloud-server-4f1e5bc8fd4d611ef1c09bd8e0930566fb2cf26b.zip |
Merge pull request #32912 from nextcloud/group-backend-batch-method
Add batch methods in user backends
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Group/ManagerTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/Group/ManagerTest.php b/tests/lib/Group/ManagerTest.php index 2887d14acaa..06875f86536 100644 --- a/tests/lib/Group/ManagerTest.php +++ b/tests/lib/Group/ManagerTest.php @@ -92,6 +92,7 @@ class ManagerTest extends TestCase { 'inGroup', 'getGroups', 'groupExists', + 'groupsExists', 'usersInGroup', 'createGroup', 'addToGroup', @@ -361,10 +362,12 @@ class ManagerTest extends TestCase { ->method('getGroups') ->with('1') ->willReturn(['group1']); + $backend->expects($this->never()) + ->method('groupExists'); $backend->expects($this->once()) - ->method('groupExists') - ->with('group1') - ->willReturn(false); + ->method('getGroupsDetails') + ->with(['group1']) + ->willReturn([]); /** @var \OC\User\Manager $userManager */ $userManager = $this->createMock(Manager::class); |