mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Some code cleanup. Fixes the tests.
This commit is contained in:
@@ -74,19 +74,4 @@ class ChartBudgetControllerTest extends TestCase
|
||||
$this->assertResponseStatus(200);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Chart\BudgetController::year
|
||||
*/
|
||||
public function testYear()
|
||||
{
|
||||
$repository = $this->mock('FireflyIII\Repositories\Budget\BudgetRepositoryInterface');
|
||||
$repository->shouldReceive('getBudgetsAndExpensesPerMonth')->once()->andReturn([]);
|
||||
$repository->shouldReceive('getWithoutBudgetSum')->times(12)->andReturn('0');
|
||||
|
||||
$this->be($this->user());
|
||||
$this->call('GET', '/chart/budget/year/default/20150101/20151231/1');
|
||||
$this->assertResponseStatus(200);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user