X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=tests%2FFeature%2FAuth%2FPasswordConfirmationTest.php;fp=tests%2FFeature%2FAuth%2FPasswordConfirmationTest.php;h=0000000000000000000000000000000000000000;hb=bb02db955fe6dbc905414d479bbe2d38d41fef63;hp=d2072ffd45dc41f110038ad4ca01c977a5fff291;hpb=9aeade5903cf6d08509fe5b1264a6bc4e0eeb60a;p=alttp.git diff --git a/tests/Feature/Auth/PasswordConfirmationTest.php b/tests/Feature/Auth/PasswordConfirmationTest.php deleted file mode 100644 index d2072ff..0000000 --- a/tests/Feature/Auth/PasswordConfirmationTest.php +++ /dev/null @@ -1,44 +0,0 @@ -create(); - - $response = $this->actingAs($user)->get('/confirm-password'); - - $response->assertStatus(200); - } - - public function test_password_can_be_confirmed() - { - $user = User::factory()->create(); - - $response = $this->actingAs($user)->post('/confirm-password', [ - 'password' => 'password', - ]); - - $response->assertRedirect(); - $response->assertSessionHasNoErrors(); - } - - public function test_password_is_not_confirmed_with_invalid_password() - { - $user = User::factory()->create(); - - $response = $this->actingAs($user)->post('/confirm-password', [ - 'password' => 'wrong-password', - ]); - - $response->assertSessionHasErrors(); - } -}