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