X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FRedisCacheLockDriverTest.php;h=d21f3b6d8621dd1d9134780f7bf928d9a2f5b450;hb=8660f6d86fc5d8f8f997b4b6a537b80d7ffbedff;hp=765055add0ad7fe5783e7eee7edf96358ab59f52;hpb=82f713cb7fbc45f108e811a425c81c11c3b094d2;p=friendica.git diff --git a/tests/src/Core/Lock/RedisCacheLockDriverTest.php b/tests/src/Core/Lock/RedisCacheLockDriverTest.php index 765055add0..d21f3b6d86 100644 --- a/tests/src/Core/Lock/RedisCacheLockDriverTest.php +++ b/tests/src/Core/Lock/RedisCacheLockDriverTest.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 redis - * @runTestsInSeparateProcesses - * @preserveGlobalState disabled */ class RedisCacheLockDriverTest extends LockTest { protected function getInstance() { - $this->mockConfigGet('system', 'redis_host', 'localhost', 1); - $this->mockConfigGet('system', 'redis_port', null, 1); + $this->configMock + ->shouldReceive('get') + ->with('system', 'redis_host') + ->andReturn('localhost'); + + $this->configMock + ->shouldReceive('get') + ->with('system', 'redis_port') + ->andReturn(null); return new CacheLockDriver(CacheDriverFactory::create('redis')); }