Fix some tests.

This commit is contained in:
James Cole
2016-12-09 16:30:33 +01:00
parent 3f56a8ec53
commit cf34713518
6 changed files with 26 additions and 129 deletions

View File

@@ -11,10 +11,6 @@
*/
class HomeControllerTest extends TestCase
{
public function displayError()
{
$this->assertTrue(true);
}
/**
* @covers FireflyIII\Http\Controllers\HomeController::dateRange
@@ -80,7 +76,7 @@ class HomeControllerTest extends TestCase
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', route('allRoutes'));
$this->call('GET', route('all-routes'));
$this->assertResponseStatus(200);
}
@@ -90,7 +86,7 @@ class HomeControllerTest extends TestCase
public function testTestFlash()
{
$this->be($this->user());
$this->call('GET', route('testFlash'));
$this->call('GET', route('test-flash'));
$this->assertResponseStatus(302);
$this->assertSessionHas('success');
$this->assertSessionHas('info');