X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FMemcacheCacheLockDriverTest.php;h=8d32ad527d3415cf3635d87a5355168fc6f0d42c;hb=f4ec7c47b921209b5ff7906bee8aba9db326d0cb;hp=d7002037e0def7f4f6dcff67c06088ef94c949f9;hpb=eb6ca7728970148ea61b7101ecea8aca4b45306e;p=friendica.git diff --git a/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php b/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php index d7002037e0..8d32ad527d 100644 --- a/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php +++ b/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php @@ -3,20 +3,25 @@ namespace Friendica\Test\src\Core\Lock; -use Friendica\Core\Cache\CacheDriverFactory; +use Friendica\Factory\CacheDriverFactory; use Friendica\Core\Lock\CacheLockDriver; /** * @requires extension Memcache - * @runTestsInSeparateProcesses - * @preserveGlobalState disabled */ class MemcacheCacheLockDriverTest extends LockTest { protected function getInstance() { - $this->mockConfigGet('system', 'memcache_host', 'localhost', 1); - $this->mockConfigGet('system', 'memcache_port', 11211, 1); + $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')); }