mirror of
https://github.com/friendica/friendica
synced 2025-02-25 03:18:19 +00:00
28 lines
558 B
PHP
28 lines
558 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Factory\CacheDriverFactory;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
/**
|
|
* @requires extension Memcache
|
|
*/
|
|
class MemcacheCacheLockDriverTest extends LockTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->configMock
|
|
->shouldReceive('get')
|
|
->with('system', 'memcache_host')
|
|
->andReturn('localhost');
|
|
|
|
$this->configMock
|
|
->shouldReceive('get')
|
|
->with('system', 'memcache_port')
|
|
->andReturn(11211);
|
|
|
|
return new CacheLockDriver(CacheDriverFactory::create('memcache'));
|
|
}
|
|
}
|