create(); $response = $this->post('/auth/login',[ "email" => $user->email, "password" => "password", ]); $response->assertStatus(200); } /** * A basic feature test example. */ public function test_fail(): void { $user = User::factory()->create(); $response = $this->post('/auth/login',[ "email" => $user->email, "password" => "fail", ]); $response->assertStatus(422); } }