Updated all tests to include the range.

This commit is contained in:
James Cole
2016-02-05 06:45:54 +01:00
parent 45deb493ba
commit 581e2ad431
8 changed files with 30 additions and 4 deletions
@@ -64,6 +64,7 @@ class BillControllerTest extends TestCase
public function testIndex($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/bills');
$this->assertResponseStatus(200);
}
@@ -75,6 +76,7 @@ class BillControllerTest extends TestCase
public function testRescan($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/bills/rescan/1');
$this->assertSessionHas('success');
$this->assertResponseStatus(302);
@@ -87,6 +89,7 @@ class BillControllerTest extends TestCase
public function testShow($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/bills/show/1');
$this->assertResponseStatus(200);
}