friendica/tests/src/Core/Lock/MemcacheCacheLockDriverTest.php
Philipp Holzer eafcf3592d
Config FollowUp
- 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
2019-02-17 20:40:27 +01:00

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'));
}
}