Fix tests

This commit is contained in:
James Cole
2018-01-17 12:29:00 +01:00
parent 80f96abf08
commit e2af0caa41
4 changed files with 20 additions and 32 deletions
@@ -81,6 +81,8 @@ class CategoryControllerTest extends TestCase
$category = factory(Category::class)->make();
$repository->shouldReceive('getCategories')->andReturn(new Collection([$category]));
$repository->shouldReceive('spentInPeriod')->andReturn('-1');
$repository->shouldReceive('earnedInPeriod')->andReturn('1');
$this->be($this->user());
$response = $this->get(route('report-data.category.operations', ['1', '20120101', '20120131']));