File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 33
33
Livewire::test (ArticleResource \Pages \ListArticles::class)
34
34
->callTableAction ('approved ' , $ article );
35
35
36
- expect ($ article ->approved_at )
37
- ->not ()
38
- ->toBe (null )
39
- ->and ($ article ->declined_at )
40
- ->toBe (null );
36
+ $ article ->refresh ();
37
+
38
+ expect ($ article ->approved_at )->toBeInstanceOf (\Carbon \Carbon::class)
39
+ ->and ($ article ->declined_at )->toBeNull ();
41
40
42
41
Livewire::test (ArticleResource \Pages \ListArticles::class)
43
42
->assertTableActionHidden ('approved ' , $ article )
54
53
55
54
$ article ->refresh ();
56
55
57
- expect ($ article ->declined_at )
58
- ->toBeInstanceOf (\Carbon \Carbon::class)
59
- ->and ($ article ->approved_at )
60
- ->toBeNull ();
56
+ expect ($ article ->declined_at )->toBeInstanceOf (\Carbon \Carbon::class)
57
+ ->and ($ article ->approved_at )->toBeNull ();
61
58
62
59
Livewire::test (ArticleResource \Pages \ListArticles::class)
63
60
->assertTableActionHidden ('approved ' , $ article )
You can’t perform that action at this time.
0 commit comments