Skip to content

Commit e17a766

Browse files
authored
Merge pull request #927 from datamweb/rector_upg
test: refactor SessionFilterTest by rector 0.18.6
2 parents 500a3d0 + 851152f commit e17a766

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Authentication/Filters/SessionFilterTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Tests\Authentication\Filters;
66

7+
use CodeIgniter\I18n\Time;
78
use CodeIgniter\Shield\Filters\SessionAuth;
89
use CodeIgniter\Shield\Models\UserModel;
910
use CodeIgniter\Test\DatabaseTestTrait;
@@ -43,7 +44,7 @@ public function testFilterSuccess(): void
4344
$this->assertSame($user->id, auth('session')->id());
4445
$this->assertSame($user->id, auth('session')->user()->id);
4546
// Last Active should have been updated
46-
$this->assertNotEmpty(auth('session')->user()->last_active);
47+
$this->assertInstanceOf(Time::class, auth('session')->user()->last_active);
4748
}
4849

4950
public function testRecordActiveDate(): void

0 commit comments

Comments
 (0)