use Friendica\Core\Cache\CacheDriverFactory;
/**
- * @runTestsInSeparateProcesses
- * @preserveGlobalState disabled
* @requires extension redis
*/
class RedisCacheDriverTest extends MemoryCacheTest
{
protected function getInstance()
{
- $this->mockConfigGet('system', 'redis_host', 'localhost', 1);
- $this->mockConfigGet('system', 'redis_port', null, 1);
+ $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;