X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FMemcacheCacheLockDriverTest.php;h=8d32ad527d3415cf3635d87a5355168fc6f0d42c;hb=f4ec7c47b921209b5ff7906bee8aba9db326d0cb;hp=ca9b9b46391ae3cf3320b26461b9e5f34a8de187;hpb=0bc2fe66f54717a3f2e86fd9626dc565e9d00fd7;p=friendica.git diff --git a/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php b/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php index ca9b9b4639..8d32ad527d 100644 --- a/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php +++ b/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php @@ -3,7 +3,7 @@ namespace Friendica\Test\src\Core\Lock; -use Friendica\Core\Cache\CacheDriverFactory; +use Friendica\Factory\CacheDriverFactory; use Friendica\Core\Lock\CacheLockDriver; /** @@ -13,6 +13,16 @@ class MemcacheCacheLockDriverTest extends LockTest { protected function getInstance() { + $this->configMock + ->shouldReceive('get') + ->with('system', 'memcache_host') + ->andReturn('localhost'); + + $this->configMock + ->shouldReceive('get') + ->with('system', 'memcache_port') + ->andReturn(11211); + return new CacheLockDriver(CacheDriverFactory::create('memcache')); } }