- New Configuration (Config is now only holding the instance) - New PConfiguration (PConfig is now only holding the instance) - Config & PConfig-Adapter don't need "ConfigCache" anymore - DB-Connection is now outside App->reload() for better dependency-chaining
28 lines
589 B
PHP
28 lines
589 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
/**
|
|
* @requires extension Memcache
|
|
*/
|
|
class MemcacheCacheLockDriverTest extends LockTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->configCache
|
|
->shouldReceive('get')
|
|
->with('system', 'memcache_host', NULL, false)
|
|
->andReturn('localhost');
|
|
|
|
$this->configCache
|
|
->shouldReceive('get')
|
|
->with('system', 'memcache_port', NULL, false)
|
|
->andReturn(11211);
|
|
|
|
return new CacheLockDriver(CacheDriverFactory::create('memcache'));
|
|
}
|
|
}
|