mirror of
https://github.com/friendica/friendica
synced 2025-04-22 09:50:12 +00:00
Fix Cache tests
This commit is contained in:
parent
16591077ac
commit
6ad27183a1
7 changed files with 16 additions and 7 deletions
|
@ -36,11 +36,12 @@ class MemcachedCacheTest extends MemoryCacheTest
|
|||
$configMock = \Mockery::mock(IConfig::class);
|
||||
|
||||
$host = $_SERVER['MEMCACHED_HOST'] ?? 'localhost';
|
||||
$port = $_SERVER['MEMCACHED_PORT'] ?? '11211';
|
||||
|
||||
$configMock
|
||||
->shouldReceive('get')
|
||||
->with('system', 'memcached_hosts')
|
||||
->andReturn([0 => $host . ', 11211']);
|
||||
->andReturn([0 => $host . ', ' . $port]);
|
||||
|
||||
$logger = new NullLogger();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue