4 namespace Friendica\Test\src\Core\Cache;
6 use Friendica\Core\Cache\CacheDriverFactory;
9 * @requires extension redis
11 class RedisCacheDriverTest extends MemoryCacheTest
13 protected function getInstance()
16 ->shouldReceive('get')
17 ->with('system', 'redis_host', NULL, false)
18 ->andReturn('localhost');
21 ->shouldReceive('get')
22 ->with('system', 'redis_port', NULL, false)
25 $this->cache = CacheDriverFactory::create('redis');
29 public function tearDown()
31 $this->cache->clear(false);