File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments