More cleanup.

This commit is contained in:
James Cole
2016-01-24 18:11:57 +01:00
parent 7b2fe8eb4a
commit a013553a6c
18 changed files with 227 additions and 225 deletions

View File

@@ -23,8 +23,8 @@ class HomeControllerTest extends TestCase
];
// if date range is > 50, should have flash.
$response = $this->call('POST', '/daterange', $args);
$this->assertEquals(200, $response->status());
$this->call('POST', '/daterange', $args);
$this->assertResponseStatus(200);
$this->assertSessionHas('warning', '91 days of data may take a while to load.');
}
@@ -34,8 +34,8 @@ class HomeControllerTest extends TestCase
public function testFlush()
{
$this->be($this->user());
$response = $this->call('GET', '/flush');
$this->assertEquals(302, $response->status());
$this->call('GET', '/flush');
$this->assertResponseStatus(302);
}
/**
@@ -45,7 +45,7 @@ class HomeControllerTest extends TestCase
public function testIndex()
{
$this->be($this->user());
$response = $this->call('GET', '/');
$this->assertEquals(200, $response->status());
$this->call('GET', '/');
$this->assertResponseStatus(200);
}
}