configCache ->shouldReceive('get') ->with('system', 'redis_host', NULL) ->andReturn('localhost'); $this->configCache ->shouldReceive('get') ->with('system', 'redis_port', NULL) ->andReturn(null); return new CacheLockDriver(CacheDriverFactory::create('redis')); } }