Updated chart, closed magic number issue.

This commit is contained in:
James Cole
2015-01-24 08:43:35 +01:00
parent 4ad67a87f1
commit f231263085
5 changed files with 25 additions and 29 deletions

View File

@@ -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
*/