Some code cleanup. Fixes the tests.

This commit is contained in:
James Cole
2016-04-25 18:43:09 +02:00
parent 53c80aaef8
commit eb5e55a272
32 changed files with 64 additions and 54 deletions

View File

@@ -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);
}
}