We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 500a3d0 + 851152f commit e17a766Copy full SHA for e17a766
tests/Authentication/Filters/SessionFilterTest.php
@@ -4,6 +4,7 @@
4
5
namespace Tests\Authentication\Filters;
6
7
+use CodeIgniter\I18n\Time;
8
use CodeIgniter\Shield\Filters\SessionAuth;
9
use CodeIgniter\Shield\Models\UserModel;
10
use CodeIgniter\Test\DatabaseTestTrait;
@@ -43,7 +44,7 @@ public function testFilterSuccess(): void
43
44
$this->assertSame($user->id, auth('session')->id());
45
$this->assertSame($user->id, auth('session')->user()->id);
46
// Last Active should have been updated
- $this->assertNotEmpty(auth('session')->user()->last_active);
47
+ $this->assertInstanceOf(Time::class, auth('session')->user()->last_active);
48
}
49
50
public function testRecordActiveDate(): void
0 commit comments