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')); } }