Fix tests.

This commit is contained in:
James Cole
2016-04-23 20:00:48 +02:00
parent 19e40e9976
commit 8883d185fe
2 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
* of the MIT license. See the LICENSE file for details.
*/
use Carbon\Carbon;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
@@ -97,7 +98,7 @@ class BillControllerTest extends TestCase
public function testShow($range)
{
$repository = $this->mock('FireflyIII\Repositories\Bill\BillRepositoryInterface');
$repository->shouldReceive('getJournals')->once()->andReturn(new Collection);
$repository->shouldReceive('getJournals')->once()->andReturn(new LengthAwarePaginator([], 0, 50));
$repository->shouldReceive('nextExpectedMatch')->once()->andReturn(new Carbon);
$this->be($this->user());
$this->changeDateRange($this->user(), $range);