Fix tests.

This commit is contained in:
James Cole
2018-09-27 13:11:31 +02:00
parent 2c2814c998
commit b1e742c26c
4 changed files with 21 additions and 8 deletions

View File

@@ -75,6 +75,7 @@ class BillTransformerTest extends TestCase
// mock stuff
$repository = $this->mock(BillRepositoryInterface::class);
$repository->shouldReceive('setUser')->andReturnSelf();
$repository->shouldReceive('getNoteText')->andReturn('Hi there');
$repository->shouldReceive('getPaidDatesInRange')->andReturn(new Collection([new Carbon('2018-01-02')]));
$bill = Bill::create(
[