mirror of
https://github.com/friendica/friendica
synced 2025-04-19 11: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,6 +36,7 @@ class MemcacheCacheLockTest extends LockTest
|
|||
$configMock = \Mockery::mock(IConfig::class);
|
||||
|
||||
$host = $_SERVER['MEMCACHE_HOST'] ?? 'localhost';
|
||||
$port = $_SERVER['MEMCACHE_PORT'] ?? '11211';
|
||||
|
||||
$configMock
|
||||
->shouldReceive('get')
|
||||
|
@ -44,7 +45,7 @@ class MemcacheCacheLockTest extends LockTest
|
|||
$configMock
|
||||
->shouldReceive('get')
|
||||
->with('system', 'memcache_port')
|
||||
->andReturn(11211);
|
||||
->andReturn($port);
|
||||
|
||||
$lock = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue