File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ phpstan.neon
99testbench.yaml
1010vendor
1111node_modules
12+ .phpunit.cache
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public function markAsRead(): static
6868 return $ this ;
6969 }
7070
71- public function markReadBy (int $ id , Carbon $ datetime = null ): static
71+ public function markReadBy (int $ id , ? Carbon $ datetime = null ): static
7272 {
7373 $ metadata = $ this ->metadata ;
7474
Original file line number Diff line number Diff line change 22
33use Carbon \Carbon ;
44use Finller \Conversation \Message ;
5- use Finller \Conversation \WidgetExample ;
65
76it ('can mark message read by a user ' , function () {
87 $ USER_ID = 102 ;
2928
3029 expect ($ message ->getReadBy ($ USER_ID ))->toBeInstanceOf (Carbon::class);
3130});
32-
33- it ('serialize and unserialize widget ' , function () {
34- /** @var Message */
35- $ message = Message::factory ()->make ([
36- 'widget ' => new WidgetExample ('Hello ' , 'World ' ), // will call Attribute set function
37- ]);
38-
39- expect ($ message ->widget )->toBeInstanceOf (WidgetExample::class);
40- });
You can’t perform that action at this time.
0 commit comments