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