@@ -14,7 +14,7 @@ class PasswordResetTest extends TestCase
14
14
15
15
public function test_reset_password_link_screen_can_be_rendered ()
16
16
{
17
- $ response = $ this ->get (' /forgot- password' );
17
+ $ response = $ this ->get (route ( ' password.request ' ) );
18
18
19
19
$ response ->assertStatus (200 );
20
20
}
@@ -25,7 +25,7 @@ public function test_reset_password_link_can_be_requested()
25
25
26
26
$ user = User::factory ()->create ();
27
27
28
- $ this ->post (' /forgot- password' , ['email ' => $ user ->email ]);
28
+ $ this ->post (route ( ' password.email ' ) , ['email ' => $ user ->email ]);
29
29
30
30
Notification::assertSentTo ($ user , ResetPassword::class);
31
31
}
@@ -36,10 +36,10 @@ public function test_reset_password_screen_can_be_rendered()
36
36
37
37
$ user = User::factory ()->create ();
38
38
39
- $ this ->post (' /forgot- password' , ['email ' => $ user ->email ]);
39
+ $ this ->post (route ( ' password.email ' ) , ['email ' => $ user ->email ]);
40
40
41
41
Notification::assertSentTo ($ user , ResetPassword::class, function ($ notification ) {
42
- $ response = $ this ->get (' /reset- password/ ' . $ notification ->token );
42
+ $ response = $ this ->get (route ( ' password.request ' , $ notification ->token ) );
43
43
44
44
$ response ->assertStatus (200 );
45
45
@@ -53,10 +53,10 @@ public function test_password_can_be_reset_with_valid_token()
53
53
54
54
$ user = User::factory ()->create ();
55
55
56
- $ this ->post (' /forgot- password' , ['email ' => $ user ->email ]);
56
+ $ this ->post (route ( ' password.email ' ) , ['email ' => $ user ->email ]);
57
57
58
58
Notification::assertSentTo ($ user , ResetPassword::class, function ($ notification ) use ($ user ) {
59
- $ response = $ this ->post (' /reset- password' , [
59
+ $ response = $ this ->post (route ( ' password.store ' ) , [
60
60
'token ' => $ notification ->token ,
61
61
'email ' => $ user ->email ,
62
62
'password ' => 'password ' ,
@@ -75,7 +75,7 @@ public function test_password_cannot_be_reset_with_invalid_token(): void
75
75
{
76
76
$ user = User::factory ()->create ();
77
77
78
- $ response = $ this ->post (' /reset- password' , [
78
+ $ response = $ this ->post (route ( ' password.store ' ) , [
79
79
'token ' => 'invalid-token ' ,
80
80
'email ' => $ user ->email ,
81
81
'password ' => 'newpassword123 ' ,
0 commit comments