Skip to content

Commit 603a7ce

Browse files
committedJan 4, 2025
Commit from GitHub Actions (style-fix)
1 parent 0aae828 commit 603a7ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎tests/AccessCodeTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public function test_forbidden_if_protected_with_access_code_and_send_bad()
3939

4040
$magiclink->protectWithAccessCode('1234');
4141

42-
$this->get("{$magiclink->url}?access-code=123")
43-
->assertStatus(403)
44-
->assertViewIs('magiclink::ask-for-access-code-form')
45-
->assertCookieMissing('magic-link-access-code');
42+
$this->get("{$magiclink->url}?access-code=123")
43+
->assertStatus(403)
44+
->assertViewIs('magiclink::ask-for-access-code-form')
45+
->assertCookieMissing('magic-link-access-code');
4646
}
4747

4848
public function test_forbidden_if_protected_with_access_code_and_send_null()
@@ -73,7 +73,7 @@ public function test_sucessfull_if_provide_access_code()
7373
->assertRedirect($magiclink->url);
7474

7575
$cookie = collect($response->headers->getCookies())
76-
->first(fn($cookie) => $cookie->getName() === 'magic-link-access-code');
76+
->first(fn ($cookie) => $cookie->getName() === 'magic-link-access-code');
7777

7878
$this->disableCookieEncryption()->withCookie($cookie->getName(), $cookie->getvalue())
7979
->get($magiclink->url)
@@ -92,7 +92,7 @@ public function test_forbidden_if_provide_access_code_of_other_link()
9292
$response = $this->get("{$magiclink->url}?access-code=1234");
9393

9494
$cookie = collect($response->headers->getCookies())
95-
->first(fn($cookie) => $cookie->getName() === 'magic-link-access-code');
95+
->first(fn ($cookie) => $cookie->getName() === 'magic-link-access-code');
9696

9797
$magiclinkOther = MagicLink::create(new ResponseAction(function () {
9898
return 'the other big secret';

0 commit comments

Comments
 (0)