namespace Friendica\Test\src\Core\Cache;
-
use Friendica\Core\Cache\CacheDriverFactory;
/**
*/
class MemcacheCacheDriverTest extends MemoryCacheTest
{
- /**
- * @var \Friendica\Core\Cache\IMemoryCacheDriver
- */
- private $cache;
-
protected function getInstance()
{
+ $this->configMock
+ ->shouldReceive('get')
+ ->with('system', 'memcache_host')
+ ->andReturn('localhost');
+
+ $this->configMock
+ ->shouldReceive('get')
+ ->with('system', 'memcache_port')
+ ->andReturn(11211);
+
$this->cache = CacheDriverFactory::create('memcache');
return $this->cache;