summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-05-16 21:25:36 +0200
committerGitHub <noreply@github.com>2022-05-16 21:25:36 +0200
commit07b25f9fc6a71cb5eeac90a9b757ed556d46decf (patch)
tree978e0f1265a5803f6991d5ae04bd0446828dfb5f /tests
parent2b3495bd709bdfc4cda2fda9821b160d9dcb0085 (diff)
parent0c26145e59ac7f34c5049c59f178c47cd918ee59 (diff)
Merge pull request #7374 from nextcloud/bugfix/noid/cache-displayname-of-owner-aswell
Cache display name of owner as well
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 {