New content and tests ensure the coverage of all code.

This commit is contained in:
James Cole
2015-01-01 20:53:36 +01:00
parent 8c439a2852
commit 98c1fcc68f
3 changed files with 100 additions and 86 deletions

View File

@@ -108,8 +108,9 @@ 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/2014');
$I->amOnPage('/chart/budget/1/spending/'.$year);
$I->seeResponseCodeIs(200);
}
@@ -129,8 +130,9 @@ class GoogleChartControllerCest
*/
public function categoriesAndSpending(FunctionalTester $I)
{
$year = date('Y');
$I->wantTo('see the chart for a category in a specific year');
$I->amOnPage('/chart/category/1/spending/2014');
$I->amOnPage('/chart/category/1/spending/'.$year);
$I->seeResponseCodeIs(200);
}