From 6f81fbd569487bb20fcc7343b4319417a1831abd Mon Sep 17 00:00:00 2001 From: Brian Matovu Date: Wed, 8 Mar 2023 20:07:40 +0300 Subject: [PATCH 1/2] Fix password update pest tests --- .../pest-tests/Feature/Auth/PasswordUpdateTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php b/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php index 4de944ec4..9a8badc30 100644 --- a/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php +++ b/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php @@ -8,7 +8,8 @@ $response = $this ->actingAs($user) - ->patch('/profile', [ + ->from('/profile') + ->put('/password', [ 'current_password' => 'password', 'password' => 'new-password', 'password_confirmation' => 'new-password', @@ -27,7 +28,7 @@ $response = $this ->actingAs($user) ->from('/profile') - ->patch('/profile', [ + ->patch('/password', [ 'current_password' => 'wrong-password', 'password' => 'new-password', 'password_confirmation' => 'new-password', From 6a55f13873b3de64f3f50f57492b6aa3aeff868f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 8 Mar 2023 11:17:27 -0600 Subject: [PATCH 2/2] Update PasswordUpdateTest.php --- .../pest-tests/Feature/Auth/PasswordUpdateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php b/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php index 9a8badc30..96929b2c4 100644 --- a/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php +++ b/stubs/inertia-common/pest-tests/Feature/Auth/PasswordUpdateTest.php @@ -28,7 +28,7 @@ $response = $this ->actingAs($user) ->from('/profile') - ->patch('/password', [ + ->put('/password', [ 'current_password' => 'wrong-password', 'password' => 'new-password', 'password_confirmation' => 'new-password',