Skip to content

Commit 292cb3c

Browse files
mshannaqkenjis
andauthored
Update tests/Authentication/Filters/SessionFilterTest.php
Co-authored-by: kenjis <kenji.uui@gmail.com>
1 parent e922392 commit 292cb3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/Authentication/Filters/SessionFilterTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ public function testBlocksInactiveUsers(): void
8787
public function testStoreRedirectsToEntraceUrlIntoSession(): void
8888
{
8989
$result = $this->call('get', 'protected-route');
90+
9091
$result->assertRedirectTo('/login');
91-
$this->assertNotEmpty($_SESSION['beforeLoginUrl']);
92-
$this->assertSame(site_url('protected-route'), $_SESSION['beforeLoginUrl']);
92+
93+
$session = session();
94+
$this->assertNotEmpty($session->get('beforeLogginUrl'));
95+
$this->assertSame(site_url('protected-route'), $session->get('beforeLogginUrl'));
9396
}
9497
}

0 commit comments

Comments
 (0)