mock('FireflyIII\Helpers\Report\ReportQueryInterface'); $repository->shouldReceive('spentPerMonth')->once()->andReturn([]); $repository->shouldReceive('earnedPerMonth')->once()->andReturn([]); $this->be($this->user()); $this->call('GET', '/chart/report/in-out/default/20150101/20151231/1'); $this->assertResponseStatus(200); } /** * @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOutSummarized */ public function testYearInOutSummarized() { $repository = $this->mock('FireflyIII\Helpers\Report\ReportQueryInterface'); $repository->shouldReceive('spentPerMonth')->once()->andReturn([]); $repository->shouldReceive('earnedPerMonth')->once()->andReturn([]); $this->be($this->user()); $this->call('GET', '/chart/report/in-out-sum/default/20150101/20151231/1'); $this->assertResponseStatus(200); } }