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.
1 parent e922392 commit 292cb3cCopy full SHA for 292cb3c
tests/Authentication/Filters/SessionFilterTest.php
@@ -87,8 +87,11 @@ public function testBlocksInactiveUsers(): void
87
public function testStoreRedirectsToEntraceUrlIntoSession(): void
88
{
89
$result = $this->call('get', 'protected-route');
90
+
91
$result->assertRedirectTo('/login');
- $this->assertNotEmpty($_SESSION['beforeLoginUrl']);
92
- $this->assertSame(site_url('protected-route'), $_SESSION['beforeLoginUrl']);
93
+ $session = session();
94
+ $this->assertNotEmpty($session->get('beforeLogginUrl'));
95
+ $this->assertSame(site_url('protected-route'), $session->get('beforeLogginUrl'));
96
}
97
0 commit comments