Skip to content

Commit

Permalink
Merge pull request #927 from datamweb/rector_upg
Browse files Browse the repository at this point in the history
test: refactor SessionFilterTest by rector 0.18.6
  • Loading branch information
datamweb authored Oct 26, 2023
2 parents 500a3d0 + 851152f commit e17a766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Authentication/Filters/SessionFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Tests\Authentication\Filters;

use CodeIgniter\I18n\Time;
use CodeIgniter\Shield\Filters\SessionAuth;
use CodeIgniter\Shield\Models\UserModel;
use CodeIgniter\Test\DatabaseTestTrait;
Expand Down Expand Up @@ -43,7 +44,7 @@ public function testFilterSuccess(): void
$this->assertSame($user->id, auth('session')->id());
$this->assertSame($user->id, auth('session')->user()->id);
// Last Active should have been updated
$this->assertNotEmpty(auth('session')->user()->last_active);
$this->assertInstanceOf(Time::class, auth('session')->user()->last_active);
}

public function testRecordActiveDate(): void
Expand Down

0 comments on commit e17a766

Please sign in to comment.