mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 13:10:35 +00:00
Some tests.
This commit is contained in:
@@ -17,6 +17,7 @@ class HomeControllerTest extends TestCase
|
||||
$args = [
|
||||
'start' => '2012-01-01',
|
||||
'end' => '2012-04-01',
|
||||
'_token' => Session::token(),
|
||||
];
|
||||
|
||||
// if date range is > 50, should have flash.
|
||||
@@ -25,4 +26,19 @@ class HomeControllerTest extends TestCase
|
||||
$this->assertSessionHas('warning', '91 days of data may take a while to load.');
|
||||
}
|
||||
|
||||
public function testFlush()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/flush');
|
||||
$this->assertEquals(302, $response->status());
|
||||
}
|
||||
|
||||
public function testIndex()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/');
|
||||
$this->assertEquals(200, $response->status());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user