Skip to content

Commit 7d9d6e1

Browse files
SystemKeeperbackportbot[bot]
authored andcommitted
test: Adjust for chat relay common-last-read
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
1 parent 3edbc88 commit 7d9d6e1

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

tests/php/Signaling/ListenerTest.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ public function testChatMessageSentEvent(): void {
290290
$comment->method('getId')->willReturn(1);
291291
$message = $this->createConfiguredMock(Message::class, [
292292
'getVisibility' => true,
293-
'toArray' => [],
293+
'toArray' => [
294+
'id' => 123,
295+
],
294296
'getMessageId' => 123,
295297
]);
296298
$l10n = $this->createMock(IL10N::class);
@@ -317,7 +319,10 @@ public function testChatMessageSentEvent(): void {
317319
'type' => 'chat',
318320
'chat' => [
319321
'refresh' => true,
320-
'comment' => [],
322+
'comment' => [
323+
'id' => 123,
324+
'lastCommonRead' => 0,
325+
],
321326
],
322327
]);
323328

@@ -333,7 +338,9 @@ public function testChatMessageSentWithThreadEvent(): void {
333338
$comment->method('getId')->willReturn(1);
334339
$message = $this->createConfiguredMock(Message::class, [
335340
'getVisibility' => true,
336-
'toArray' => [],
341+
'toArray' => [
342+
'id' => 123,
343+
],
337344
'getMessageId' => 123,
338345
]);
339346

@@ -365,7 +372,10 @@ public function testChatMessageSentWithThreadEvent(): void {
365372
'type' => 'chat',
366373
'chat' => [
367374
'refresh' => true,
368-
'comment' => [],
375+
'comment' => [
376+
'id' => 123,
377+
'lastCommonRead' => 0,
378+
],
369379
],
370380
]);
371381

0 commit comments

Comments
 (0)