diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-02 17:10:31 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-27 12:00:45 +0200 |
commit | b6c17c6ce76080df0e291f60a85c0e42afab8f39 (patch) | |
tree | 3b26ccfc21ffe384a0c972d37a1ae2f12c7e7da5 /tests/lib/Group/ManagerTest.php | |
parent | 6385a5af36957cac4e1beed531d941129eb3a5a0 (diff) | |
download | nextcloud-server-b6c17c6ce76080df0e291f60a85c0e42afab8f39.tar.gz nextcloud-server-b6c17c6ce76080df0e291f60a85c0e42afab8f39.zip |
Clear up return types
usersInGroup index by int for BC, searchInGroup index by uid (string).
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/Group/ManagerTest.php')
-rw-r--r-- | tests/lib/Group/ManagerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Group/ManagerTest.php b/tests/lib/Group/ManagerTest.php index 1bdb2219346..186f9d619a2 100644 --- a/tests/lib/Group/ManagerTest.php +++ b/tests/lib/Group/ManagerTest.php @@ -737,7 +737,7 @@ class ManagerTest extends TestCase { $backend->expects($this->once()) ->method('searchInGroup') ->with('testgroup', '', -1, 0) - ->willReturn([$this->getTestUser('user2'), $this->getTestUser('user33')]); + ->willReturn(['user2' => $this->getTestUser('user2'), 'user33' => $this->getTestUser('user33')]); $this->userManager->expects($this->never())->method('get'); @@ -793,7 +793,7 @@ class ManagerTest extends TestCase { $backend->expects($this->once()) ->method('searchInGroup') ->with('testgroup', '', 1, 1) - ->willReturn([$this->getTestUser('user33')]); + ->willReturn(['user33' => $this->getTestUser('user33')]); $this->userManager->expects($this->never())->method('get'); |