mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:50:11 +00:00
Fix Cache tests
This commit is contained in:
parent
16591077ac
commit
6ad27183a1
7 changed files with 16 additions and 7 deletions
|
@ -35,6 +35,7 @@ class RedisCacheTest extends MemoryCacheTest
|
|||
$configMock = \Mockery::mock(IConfig::class);
|
||||
|
||||
$host = $_SERVER['REDIS_HOST'] ?? 'localhost';
|
||||
$port = $_SERVER['REDIS_PORT'] ?? null;
|
||||
|
||||
$configMock
|
||||
->shouldReceive('get')
|
||||
|
@ -43,7 +44,7 @@ class RedisCacheTest extends MemoryCacheTest
|
|||
$configMock
|
||||
->shouldReceive('get')
|
||||
->with('system', 'redis_port')
|
||||
->andReturn(null);
|
||||
->andReturn($port);
|
||||
|
||||
$configMock
|
||||
->shouldReceive('get')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue