Some refactoring.

This commit is contained in:
James Cole
2014-12-30 18:44:58 +01:00
parent 94fcfacec4
commit 8c3ae40de1
26 changed files with 327 additions and 329 deletions

View File

@@ -26,20 +26,20 @@ class GoogleChartControllerCest
/**
* @param FunctionalTester $I
*/
public function accountBalanceChart(FunctionalTester $I)
public function accountAllBalanceChart(FunctionalTester $I)
{
$I->wantTo('see the session balance chart of an account.');
$I->amOnPage('chart/account/1/session');
$I->wantTo('see the complete balance chart of an account.');
$I->amOnPage('chart/account/1/all');
$I->seeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
public function accountAllBalanceChart(FunctionalTester $I)
public function accountBalanceChart(FunctionalTester $I)
{
$I->wantTo('see the complete balance chart of an account.');
$I->amOnPage('chart/account/1/all');
$I->wantTo('see the session balance chart of an account.');
$I->amOnPage('chart/account/1/session');
$I->seeResponseCodeIs(200);
}
@@ -73,6 +73,26 @@ class GoogleChartControllerCest
$I->seeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
public function billOverview(FunctionalTester $I)
{
$I->wantTo('see the chart for the history of a bill');
$I->amOnPage('/chart/bills/1');
$I->seeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
public function billsOverview(FunctionalTester $I)
{
$I->wantTo('see the chart for which bills I have yet to pay');
$I->amOnPage('/chart/home/bills');
$I->seeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
@@ -125,26 +145,6 @@ class GoogleChartControllerCest
$I->see('Invalid year');
}
/**
* @param FunctionalTester $I
*/
public function piggyBankHistory(FunctionalTester $I)
{
$I->wantTo('see the chart for the history of a piggy bank');
$I->amOnPage('/chart/piggy_history/1');
$I->seeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
public function billOverview(FunctionalTester $I)
{
$I->wantTo('see the chart for the history of a bill');
$I->amOnPage('/chart/bills/1');
$I->seeResponseCodeIs(200);
}
/**
* @param FunctionalTester $I
*/
@@ -158,10 +158,10 @@ class GoogleChartControllerCest
/**
* @param FunctionalTester $I
*/
public function billsOverview(FunctionalTester $I)
public function piggyBankHistory(FunctionalTester $I)
{
$I->wantTo('see the chart for which bills I have yet to pay');
$I->amOnPage('/chart/home/bills');
$I->wantTo('see the chart for the history of a piggy bank');
$I->amOnPage('/chart/piggy_history/1');
$I->seeResponseCodeIs(200);
}