This fixes the tests.

This commit is contained in:
James Cole
2016-12-28 09:56:07 +01:00
parent 6151d4a0ec
commit 9c6a3e4ad5
4 changed files with 55 additions and 1 deletions

View File

@@ -128,6 +128,22 @@ class AccountControllerTest extends TestCase
$this->see('<ol class="breadcrumb">');
}
/**
* @covers FireflyIII\Http\Controllers\AccountController::showWithDate
* @dataProvider dateRangeProvider
*
* @param string $range
*/
public function testShowAll(string $range)
{
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$this->call('GET', route('accounts.show.all', [1]));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**
* @covers FireflyIII\Http\Controllers\AccountController::showWithDate
* @dataProvider dateRangeProvider