Updated test code.

This commit is contained in:
James Cole
2016-01-19 16:55:53 +01:00
parent c2e04a11bf
commit ddaa53b940
3 changed files with 40 additions and 7 deletions

View File

@@ -9,14 +9,17 @@
*/
class HomeControllerTest extends TestCase
{
/**
* @covers FireflyIII\Http\Controllers\HomeController::dateRange
*/
public function testDateRange()
{
$this->be($this->user());
$args = [
'start' => '2012-01-01',
'end' => '2012-04-01',
'start' => '2012-01-01',
'end' => '2012-04-01',
'_token' => Session::token(),
];
@@ -26,6 +29,9 @@ class HomeControllerTest extends TestCase
$this->assertSessionHas('warning', '91 days of data may take a while to load.');
}
/**
* @covers FireflyIII\Http\Controllers\HomeController::flush
*/
public function testFlush()
{
$this->be($this->user());
@@ -33,12 +39,13 @@ class HomeControllerTest extends TestCase
$this->assertEquals(302, $response->status());
}
/**
* @covers FireflyIII\Http\Controllers\HomeController::index
*/
public function testIndex()
{
$this->be($this->user());
$response = $this->call('GET', '/');
$this->assertEquals(200, $response->status());
}
}