mirror of
https://github.com/friendica/friendica
synced 2025-02-26 05:18:14 +00:00
28 lines
542 B
PHP
28 lines
542 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Factory\CacheDriverFactory;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
/**
|
|
* @requires extension redis
|
|
*/
|
|
class RedisCacheLockDriverTest extends LockTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$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'));
|
|
}
|
|
}
|