@@ -14,7 +14,7 @@ class PasswordResetTest extends TestCase
1414
1515 public function test_reset_password_link_screen_can_be_rendered ()
1616 {
17- $ response = $ this ->get (' /forgot- password' );
17+ $ response = $ this ->get (route ( ' password.request ' ) );
1818
1919 $ response ->assertStatus (200 );
2020 }
@@ -25,7 +25,7 @@ public function test_reset_password_link_can_be_requested()
2525
2626 $ user = User::factory ()->create ();
2727
28- $ this ->post (' /forgot- password' , ['email ' => $ user ->email ]);
28+ $ this ->post (route ( ' password.email ' ) , ['email ' => $ user ->email ]);
2929
3030 Notification::assertSentTo ($ user , ResetPassword::class);
3131 }
@@ -36,10 +36,10 @@ public function test_reset_password_screen_can_be_rendered()
3636
3737 $ user = User::factory ()->create ();
3838
39- $ this ->post (' /forgot- password' , ['email ' => $ user ->email ]);
39+ $ this ->post (route ( ' password.email ' ) , ['email ' => $ user ->email ]);
4040
4141 Notification::assertSentTo ($ user , ResetPassword::class, function ($ notification ) {
42- $ response = $ this ->get (' /reset- password/ ' . $ notification ->token );
42+ $ response = $ this ->get (route ( ' password.request ' , $ notification ->token ) );
4343
4444 $ response ->assertStatus (200 );
4545
@@ -53,10 +53,10 @@ public function test_password_can_be_reset_with_valid_token()
5353
5454 $ user = User::factory ()->create ();
5555
56- $ this ->post (' /forgot- password' , ['email ' => $ user ->email ]);
56+ $ this ->post (route ( ' password.email ' ) , ['email ' => $ user ->email ]);
5757
5858 Notification::assertSentTo ($ user , ResetPassword::class, function ($ notification ) use ($ user ) {
59- $ response = $ this ->post (' /reset- password' , [
59+ $ response = $ this ->post (route ( ' password.store ' ) , [
6060 'token ' => $ notification ->token ,
6161 'email ' => $ user ->email ,
6262 'password ' => 'password ' ,
@@ -75,7 +75,7 @@ public function test_password_cannot_be_reset_with_invalid_token(): void
7575 {
7676 $ user = User::factory ()->create ();
7777
78- $ response = $ this ->post (' /reset- password' , [
78+ $ response = $ this ->post (route ( ' password.store ' ) , [
7979 'token ' => 'invalid-token ' ,
8080 'email ' => $ user ->email ,
8181 'password ' => 'newpassword123 ' ,
0 commit comments