mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
The tests now reflect that not all category-related views support all date ranges, see issue #170
This commit is contained in:
@@ -13,12 +13,14 @@
|
||||
class AccountControllerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\AccountController::create
|
||||
* @covers FireflyIII\Http\Controllers\AccountController::__construct
|
||||
* @covers FireflyIII\Http\Controllers\AccountController::create
|
||||
* @covers FireflyIII\Http\Controllers\AccountController::__construct
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testCreate()
|
||||
public function testCreate($range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('GET', '/accounts/create/asset');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
@@ -58,20 +60,24 @@ class AccountControllerTest extends TestCase
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\AccountController::index
|
||||
* @covers FireflyIII\Http\Controllers\AccountController::isInArray
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testIndex()
|
||||
public function testIndex($range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('GET', '/accounts/asset');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\AccountController::show
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testShow()
|
||||
public function testShow($range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('GET', '/accounts/show/1');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user