diff options
Diffstat (limited to 'tests/php/Service/RoomServiceTest.php')
-rw-r--r-- | tests/php/Service/RoomServiceTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/php/Service/RoomServiceTest.php b/tests/php/Service/RoomServiceTest.php index d223c4c3c..57f771424 100644 --- a/tests/php/Service/RoomServiceTest.php +++ b/tests/php/Service/RoomServiceTest.php @@ -90,9 +90,13 @@ class RoomServiceTest extends TestCase { $user1 = $this->createMock(IUser::class); $user1->method('getUID') ->willReturn('uid1'); + $user1->method('getDisplayName') + ->willReturn('display-1'); $user2 = $this->createMock(IUser::class); $user2->method('getUID') ->willReturn('uid2'); + $user2->method('getDisplayName') + ->willReturn('display-2'); $room = $this->createMock(Room::class); $this->participantService->expects($this->once()) @@ -100,10 +104,12 @@ class RoomServiceTest extends TestCase { ->with($room, [[ 'actorType' => 'users', 'actorId' => 'uid1', + 'displayName' => 'display-1', 'participantType' => Participant::OWNER, ], [ 'actorType' => 'users', 'actorId' => 'uid2', + 'displayName' => 'display-2', 'participantType' => Participant::OWNER, ]]); |