diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-08-06 21:06:44 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-08-06 21:06:44 +0200 |
commit | e4fa36e231a4fcf822f27507de1b663e0af29fa0 (patch) | |
tree | d3fa44eb547514592ed1d21830a181d5d15f652c | |
parent | a455283651f4ed40913af90a6d7ad5ef96c69d75 (diff) | |
download | nextcloud-server-e4fa36e231a4fcf822f27507de1b663e0af29fa0.tar.gz nextcloud-server-e4fa36e231a4fcf822f27507de1b663e0af29fa0.zip |
fix: Fix failing test for group listing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | tests/Core/Command/Group/ListCommandTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Core/Command/Group/ListCommandTest.php b/tests/Core/Command/Group/ListCommandTest.php index 73eb8866715..a995bdc0b20 100644 --- a/tests/Core/Command/Group/ListCommandTest.php +++ b/tests/Core/Command/Group/ListCommandTest.php @@ -112,10 +112,13 @@ class ListCommandTest extends TestCase { public function testInfo() { $group1 = $this->createMock(IGroup::class); $group1->method('getGID')->willReturn('group1'); + $group1->method('getDisplayName')->willReturn('Group 1'); $group2 = $this->createMock(IGroup::class); $group2->method('getGID')->willReturn('group2'); + $group2->method('getDisplayName')->willReturn('Group 2'); $group3 = $this->createMock(IGroup::class); $group3->method('getGID')->willReturn('group3'); + $group3->method('getDisplayName')->willReturn('Group 3'); $user = $this->createMock(IUser::class); @@ -171,6 +174,7 @@ class ListCommandTest extends TestCase { $this->callback( fn ($iterator) => iterator_to_array($iterator) === [ 'group1' => [ + 'displayName' => 'Group 1', 'backends' => ['Database'], 'users' => [ 'user1', @@ -178,10 +182,12 @@ class ListCommandTest extends TestCase { ], ], 'group2' => [ + 'displayName' => 'Group 2', 'backends' => ['Database'], 'users' => [], ], 'group3' => [ + 'displayName' => 'Group 3', 'backends' => ['LDAP'], 'users' => [ 'user1', |