4 namespace Friendica\Test\src\Core\Lock;
6 use Friendica\Factory\CacheDriverFactory;
7 use Friendica\Core\Lock\CacheLockDriver;
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')
26 return new CacheLockDriver(CacheDriverFactory::create('redis'));