X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=tests%2FFeature%2FAuth%2FAuthenticationTest.php;fp=tests%2FFeature%2FAuth%2FAuthenticationTest.php;h=0000000000000000000000000000000000000000;hb=bb02db955fe6dbc905414d479bbe2d38d41fef63;hp=075a4c2092a89654ee4886fb376257d18b2d0392;hpb=9aeade5903cf6d08509fe5b1264a6bc4e0eeb60a;p=alttp.git diff --git a/tests/Feature/Auth/AuthenticationTest.php b/tests/Feature/Auth/AuthenticationTest.php deleted file mode 100644 index 075a4c2..0000000 --- a/tests/Feature/Auth/AuthenticationTest.php +++ /dev/null @@ -1,45 +0,0 @@ -get('/login'); - - $response->assertStatus(200); - } - - public function test_users_can_authenticate_using_the_login_screen() - { - $user = User::factory()->create(); - - $response = $this->post('/login', [ - 'email' => $user->email, - 'password' => 'password', - ]); - - $this->assertAuthenticated(); - $response->assertRedirect(RouteServiceProvider::HOME); - } - - public function test_users_can_not_authenticate_with_invalid_password() - { - $user = User::factory()->create(); - - $this->post('/login', [ - 'email' => $user->email, - 'password' => 'wrong-password', - ]); - - $this->assertGuest(); - } -}