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

View File

@@ -65,6 +65,7 @@ class TransactionControllerTest extends TestCase
public function testIndex($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/transactions/deposit');
$this->assertResponseStatus(200);
}
@@ -90,6 +91,7 @@ class TransactionControllerTest extends TestCase
public function testShow($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/transaction/show/1');
$this->assertResponseStatus(200);
}