aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Core/Command/Group/ListCommandTest.php6
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',