namespace Friendica\Test\src\Core\Cache;
-
use Friendica\Core\Cache\CacheDriverFactory;
/**
{
protected function getInstance()
{
+ $this->configCache
+ ->shouldReceive('get')
+ ->with('system', 'redis_host', NULL)
+ ->andReturn('localhost');
+
+ $this->configCache
+ ->shouldReceive('get')
+ ->with('system', 'redis_port', NULL)
+ ->andReturn(null);
+
$this->cache = CacheDriverFactory::create('redis');
return $this->cache;
}