Renamed a method.

This commit is contained in:
James Cole 2015-05-16 09:26:54 +02:00
parent e155d3311c
commit a5294c62ea
3 changed files with 8 additions and 3 deletions

View File

@ -35,12 +35,14 @@ class GoogleChartController extends Controller
/**
* Shows an account's balance for a single month.
*
* @param GChart $chart
* @param Account $account
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function accountBalanceChart(GChart $chart, Account $account)
public function accountBalance(GChart $chart, Account $account)
{
$chart->addColumn(trans('firefly.dayOfMonth'), 'date');
$chart->addColumn(trans('firefly.balanceFor', ['name' => $account->name]), 'number');

View File

@ -275,11 +275,14 @@ Route::group(
/**
* Google Chart Controller
*/
Route::get('/chart/account/{account}', ['uses' => 'GoogleChartController@accountBalance']);
Route::get('/chart/home/account', ['uses' => 'GoogleChartController@allAccountsBalanceChart']);
Route::get('/chart/home/budgets', ['uses' => 'GoogleChartController@allBudgetsHomeChart']);
Route::get('/chart/home/categories', ['uses' => 'GoogleChartController@allCategoriesHomeChart']);
Route::get('/chart/home/bills', ['uses' => 'GoogleChartController@billsOverview']);
Route::get('/chart/account/{account}/{view?}', ['uses' => 'GoogleChartController@accountBalanceChart']);
Route::get('/chart/budget/{budget}/{limitrepetition}', ['uses' => 'GoogleChartController@budgetLimitSpending']);
Route::get('/chart/reports/income-expenses/{year}/{shared?}', ['uses' => 'GoogleChartController@yearInExp'])->where(['year' => '[0-9]{4}','shared'=> 'shared']);
Route::get('/chart/reports/income-expenses-sum/{year}/{shared?}', ['uses' => 'GoogleChartController@yearInExpSum'])->where(['year' => '[0-9]{4}','shared'=> 'shared']);

View File

@ -39,7 +39,7 @@ class GoogleChartControllerTest extends TestCase
}
public function testAccountBalanceChart()
public function testAccountBalance()
{
$account = FactoryMuffin::create('FireflyIII\Models\Account');
$this->be($account->user);