diff --git a/stubs/api/pest-tests/Feature/Auth/PasswordResetTest.php b/stubs/api/pest-tests/Feature/Auth/PasswordResetTest.php index 39085f77e..78e7b6f11 100644 --- a/stubs/api/pest-tests/Feature/Auth/PasswordResetTest.php +++ b/stubs/api/pest-tests/Feature/Auth/PasswordResetTest.php @@ -29,7 +29,9 @@ 'password_confirmation' => 'password', ]); - $response->assertSessionHasNoErrors(); + $response + ->assertSessionHasNoErrors() + ->assertStatus(200); return true; }); diff --git a/stubs/api/tests/Feature/Auth/PasswordResetTest.php b/stubs/api/tests/Feature/Auth/PasswordResetTest.php index de9af9707..9b652bcba 100644 --- a/stubs/api/tests/Feature/Auth/PasswordResetTest.php +++ b/stubs/api/tests/Feature/Auth/PasswordResetTest.php @@ -39,7 +39,9 @@ public function test_password_can_be_reset_with_valid_token(): void 'password_confirmation' => 'password', ]); - $response->assertSessionHasNoErrors(); + $response + ->assertSessionHasNoErrors() + ->assertStatus(200); return true; }); diff --git a/stubs/default/pest-tests/Feature/Auth/PasswordResetTest.php b/stubs/default/pest-tests/Feature/Auth/PasswordResetTest.php index 065ea9af3..0504276a6 100644 --- a/stubs/default/pest-tests/Feature/Auth/PasswordResetTest.php +++ b/stubs/default/pest-tests/Feature/Auth/PasswordResetTest.php @@ -51,7 +51,9 @@ 'password_confirmation' => 'password', ]); - $response->assertSessionHasNoErrors(); + $response + ->assertSessionHasNoErrors() + ->assertRedirect(route('login')); return true; }); diff --git a/stubs/default/tests/Feature/Auth/PasswordResetTest.php b/stubs/default/tests/Feature/Auth/PasswordResetTest.php index 4a260656c..aa5035058 100644 --- a/stubs/default/tests/Feature/Auth/PasswordResetTest.php +++ b/stubs/default/tests/Feature/Auth/PasswordResetTest.php @@ -63,7 +63,9 @@ public function test_password_can_be_reset_with_valid_token(): void 'password_confirmation' => 'password', ]); - $response->assertSessionHasNoErrors(); + $response + ->assertSessionHasNoErrors() + ->assertRedirect(route('login')); return true; });