mirror of
https://github.com/friendica/friendica
synced 2025-02-25 23:18:14 +00:00
23 lines
480 B
PHP
23 lines
480 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
/**
|
|
* @requires extension memcached
|
|
*/
|
|
class MemcachedCacheLockDriverTest extends LockTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->configCache
|
|
->shouldReceive('get')
|
|
->with('system', 'memcached_hosts', NULL)
|
|
->andReturn([0 => 'localhost, 11211']);
|
|
|
|
return new CacheLockDriver(CacheDriverFactory::create('memcached'));
|
|
}
|
|
}
|