/**
* @requires extension redis
- * @runTestsInSeparateProcesses
- * @preserveGlobalState disabled
*/
class RedisCacheLockDriverTest extends LockTest
{
protected function getInstance()
{
- $this->mockConfigGet('system', 'redis_host', 'localhost', 1);
- $this->mockConfigGet('system', 'redis_port', null, 1);
+ $this->configCache
+ ->shouldReceive('get')
+ ->with('system', 'redis_host', NULL, false)
+ ->andReturn('localhost');
+
+ $this->configCache
+ ->shouldReceive('get')
+ ->with('system', 'redis_port', NULL, false)
+ ->andReturn(null);
return new CacheLockDriver(CacheDriverFactory::create('redis'));
}