Fix tests

This commit is contained in:
James Cole
2019-09-06 17:19:21 +02:00
parent e9782a701f
commit 30f454d38a
12 changed files with 212 additions and 132 deletions

View File

@@ -72,6 +72,8 @@ class IndexControllerTest extends TestCase
$pref->data = 50;
Preferences::shouldReceive('get')->withArgs(['listPageSize', 50])->atLeast()->once()->andReturn($pref);
$repository->shouldReceive('getOccurrencesInRange')->atLeast()->once()->andReturn([]);
$this->mockDefaultSession();
$transformer->shouldReceive('setParameters')->atLeast()->once();
@@ -126,6 +128,8 @@ class IndexControllerTest extends TestCase
$pref->data = 50;
Preferences::shouldReceive('get')->withArgs(['listPageSize', 50])->atLeast()->once()->andReturn($pref);
$repository->shouldReceive('getOccurrencesInRange')->atLeast()->once()->andReturn([]);
$this->mockDefaultSession();
$transformer->shouldReceive('setParameters')->atLeast()->once();