summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-16 15:10:15 +0200
committerJoas Schilling <coding@schilljs.com>2022-05-16 15:12:57 +0200
commit0c26145e59ac7f34c5049c59f178c47cd918ee59 (patch)
tree5e9718aeaaccbbf1f3a62656f2d244bf3e492250 /tests
parentfca197da17401a4cbafc000e39ea17795ca19123 (diff)
Cache display name of owner as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Service/RoomServiceTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/php/Service/RoomServiceTest.php b/tests/php/Service/RoomServiceTest.php
index 5d4b2897f..bbc1ba70d 100644
--- a/tests/php/Service/RoomServiceTest.php
+++ b/tests/php/Service/RoomServiceTest.php
@@ -268,12 +268,15 @@ class RoomServiceTest extends TestCase {
$owner = $this->createMock(IUser::class);
$owner->method('getUID')
->willReturn($ownerId);
+ $owner->method('getDisplayName')
+ ->willReturn($ownerId . '-display');
$this->participantService->expects($this->once())
->method('addUsers')
->with($room, [[
'actorType' => 'users',
'actorId' => $ownerId,
+ 'displayName' => $ownerId . '-display',
'participantType' => Participant::OWNER,
]]);
} else {