File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/Authentication/Filters Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ public function testRecordActiveDate(): void
54
54
$ this ->withSession (['user ' => ['id ' => $ user ->id ]])
55
55
->get ('protected-route ' );
56
56
57
- $ updated_at = auth ('session ' )->user ()->updated_at ;
58
- $ last_active = auth ('session ' )->user ()->last_active ;
57
+ $ updated_at = Time:: parse ( auth ('session ' )->user ()->updated_at ) ;
58
+ $ last_active = Time:: parse ( auth ('session ' )->user ()->last_active ) ;
59
59
60
60
// Last Active should be greater than 'updated_at' column
61
61
$ this ->assertTrue ($ last_active ->isAfter ($ updated_at ));
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ public function testRecordActiveDate(): void
60
60
$ this ->withHeaders (['Authorization ' => 'Bearer ' . $ token ->raw_token ])
61
61
->get ('protected-route ' );
62
62
63
- $ updated_at = auth ('session ' )->user ()->updated_at ;
64
- $ last_active = auth ('session ' )->user ()->last_active ;
63
+ $ updated_at = Time:: parse ( auth ('session ' )->user ()->updated_at ) ;
64
+ $ last_active = Time:: parse ( auth ('session ' )->user ()->last_active ) ;
65
65
66
66
// Last Active should be greater than 'updated_at' column
67
67
$ this ->assertTrue ($ last_active ->isAfter ($ updated_at ));
You can’t perform that action at this time.
0 commit comments