mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Updated chart, closed magic number issue.
This commit is contained in:
@@ -108,23 +108,11 @@ class GoogleChartControllerCest
|
||||
*/
|
||||
public function budgetsAndSpending(FunctionalTester $I)
|
||||
{
|
||||
$year = date('Y');
|
||||
$I->wantTo('see the chart for a budget in a specific year');
|
||||
$I->amOnPage('/chart/budget/1/spending/'.$year);
|
||||
$I->amOnPage('/chart/budget/1/spending');
|
||||
$I->seeResponseCodeIs(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FunctionalTester $I
|
||||
*/
|
||||
public function budgetsAndSpendingInvalidYear(FunctionalTester $I)
|
||||
{
|
||||
$I->wantTo('see the chart for a budget in an invalid year');
|
||||
$I->amOnPage('/chart/budget/1/spending/XXXX');
|
||||
$I->seeResponseCodeIs(200);
|
||||
$I->see('Invalid year');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FunctionalTester $I
|
||||
*/
|
||||
|
Reference in New Issue
Block a user