Fix Cache tests

This commit is contained in:
Philipp
2020-08-19 14:09:16 +02:00
parent 16591077ac
commit 6ad27183a1
7 changed files with 16 additions and 7 deletions

View File

@@ -36,6 +36,7 @@ class RedisCacheLockTest extends LockTest
$configMock = \Mockery::mock(IConfig::class);
$host = $_SERVER['REDIS_HOST'] ?? 'localhost';
$port = $_SERVER['REDIS_PORT'] ?? null;
$configMock
->shouldReceive('get')
@@ -44,7 +45,7 @@ class RedisCacheLockTest extends LockTest
$configMock
->shouldReceive('get')
->with('system', 'redis_port')
->andReturn(null);
->andReturn($port);
$configMock
->shouldReceive('get')