$cache->shouldReceive('set')->withAnyArgs()->andReturn(false)->atMost()->twice();
$lock = Mockery::mock(ILock::class);
+ $lock->shouldReceive('acquire')->andReturn(true);
+ $lock->shouldReceive('isLocked')->andReturn(false);
$router = (new App\Router([], __DIR__ . '/../../../static/routes.config.php', $l10n, $cache, $lock));
$this->cache->shouldReceive('set')->andReturn(false);
$this->lock = Mockery::mock(ILock::class);
- $this->cache->shouldReceive('acquire')->andReturn(true);
- $this->cache->shouldReceive('isLocked')->andReturn(false);
+ $this->lock->shouldReceive('acquire')->andReturn(true);
+ $this->lock->shouldReceive('isLocked')->andReturn(false);
}
public function testGetModuleClass()