mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 11:48:53 +00:00
Updated various classes and tests.
This commit is contained in:
@@ -30,6 +30,17 @@ class UserControllerTest extends TestCase
|
||||
$data = ['email' => 'bla@bla.nl', 'password' => 'xxxx','remember_me' => '1'];
|
||||
Auth::shouldReceive('attempt')->once()->andReturn(true);
|
||||
$this->call('POST', '/login', $data);
|
||||
$this->assertSessionHas('success');
|
||||
$this->assertRedirectedToRoute('index');
|
||||
}
|
||||
|
||||
public function testPostFalseLogin()
|
||||
{
|
||||
$data = ['email' => 'bla@bla.nl', 'password' => 'xxxx','remember_me' => '1'];
|
||||
Auth::shouldReceive('attempt')->once()->andReturn(false);
|
||||
View::shouldReceive('make')->with('user.login')->once();
|
||||
$this->call('POST', '/login', $data);
|
||||
$this->assertSessionHas('error');
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
|
Reference in New Issue
Block a user