mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some refactoring.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user