@@ -39,10 +39,10 @@ public function test_forbidden_if_protected_with_access_code_and_send_bad()
39
39
40
40
$ magiclink ->protectWithAccessCode ('1234 ' );
41
41
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 ' );
46
46
}
47
47
48
48
public function test_forbidden_if_protected_with_access_code_and_send_null ()
@@ -73,7 +73,7 @@ public function test_sucessfull_if_provide_access_code()
73
73
->assertRedirect ($ magiclink ->url );
74
74
75
75
$ 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 ' );
77
77
78
78
$ this ->disableCookieEncryption ()->withCookie ($ cookie ->getName (), $ cookie ->getvalue ())
79
79
->get ($ magiclink ->url )
@@ -92,7 +92,7 @@ public function test_forbidden_if_provide_access_code_of_other_link()
92
92
$ response = $ this ->get ("{$ magiclink ->url }?access-code=1234 " );
93
93
94
94
$ 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 ' );
96
96
97
97
$ magiclinkOther = MagicLink::create (new ResponseAction (function () {
98
98
return 'the other big secret ' ;
0 commit comments