4 namespace Friendica\Test\src\Core\Lock;
6 use Friendica\Core\Lock\CacheLockDriver;
7 use Friendica\Factory\CacheDriverFactory;
10 * @requires extension redis
12 class RedisCacheLockDriverTest extends LockTest
14 protected function getInstance()
17 ->shouldReceive('get')
18 ->with('system', 'redis_host')
19 ->andReturn('localhost');
22 ->shouldReceive('get')
23 ->with('system', 'redis_port')
27 ->shouldReceive('get')
28 ->with('system', 'redis_db')
32 ->shouldReceive('get')
33 ->with('system', 'redis_password')
36 return new CacheLockDriver(CacheDriverFactory::create('redis'));