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

@@ -25,6 +25,7 @@ class ReportControllerTest extends TestCase
public function testIndex($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/reports');
$this->assertResponseStatus(200);
@@ -47,6 +48,7 @@ class ReportControllerTest extends TestCase
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/reports/report/default/20160101/20160131/1,2');
$this->assertResponseStatus(200);
}
@@ -59,6 +61,7 @@ class ReportControllerTest extends TestCase
public function testReportDefaultYear($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/reports/report/default/20160101/20161231/1,2');
$this->assertResponseStatus(200);
}
@@ -71,6 +74,7 @@ class ReportControllerTest extends TestCase
public function testReportDefaultMultiYear($range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', '/reports/report/default/20160101/20171231/1,2');
$this->assertResponseStatus(200);
}