Activate redis

This commit is contained in:
Philipp 2020-10-18 20:47:03 +02:00
parent 8f0afa6399
commit b4624f87ae
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
3 changed files with 5 additions and 4 deletions

View file

@ -37,7 +37,7 @@ class RedisCacheTest extends MemoryCacheTest
$configMock = Mockery::mock(IConfig::class);
$host = $_SERVER['REDIS_HOST'] ?? 'localhost';
$port = $_SERVER['REDIS_PORT'] ?? null;
$port = $_SERVER['REDIS_PORT'] ?? 6379;
$configMock
->shouldReceive('get')
@ -51,7 +51,7 @@ class RedisCacheTest extends MemoryCacheTest
$configMock
->shouldReceive('get')
->with('system', 'redis_db', 0)
->andReturn(3);
->andReturn(0);
$configMock
->shouldReceive('get')
->with('system', 'redis_password')

View file

@ -38,7 +38,7 @@ class RedisCacheLockTest extends LockTest
$configMock = Mockery::mock(IConfig::class);
$host = $_SERVER['REDIS_HOST'] ?? 'localhost';
$port = $_SERVER['REDIS_PORT'] ?? null;
$port = $_SERVER['REDIS_PORT'] ?? 6379;
$configMock
->shouldReceive('get')
@ -52,7 +52,7 @@ class RedisCacheLockTest extends LockTest
$configMock
->shouldReceive('get')
->with('system', 'redis_db', 0)
->andReturn(3);
->andReturn(0);
$configMock
->shouldReceive('get')
->with('system', 'redis_password')