mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-03-02 20:59:35 +00:00
(test for old input on failed login)
This commit is contained in:
@@ -48,6 +48,8 @@ class PromoterLoginTest extends TestCase
|
||||
|
||||
$response->assertRedirect('/login');
|
||||
$response->assertSessionHasErrors('email');
|
||||
$this->assertTrue(session()->hasOldInput('email'));
|
||||
$this->assertFalse(session()->hasOldInput('password'));
|
||||
$this->assertFalse(Auth::check());
|
||||
}
|
||||
|
||||
@@ -63,6 +65,8 @@ class PromoterLoginTest extends TestCase
|
||||
|
||||
$response->assertRedirect('/login');
|
||||
$response->assertSessionHasErrors('email');
|
||||
$this->assertTrue(session()->hasOldInput('email'));
|
||||
$this->assertFalse(session()->hasOldInput('password'));
|
||||
$this->assertFalse(Auth::check());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user