configCache ->shouldReceive('get') ->with('system', 'memcache_host', NULL, false) ->andReturn('localhost'); $this->configCache ->shouldReceive('get') ->with('system', 'memcache_port', NULL, false) ->andReturn(11211); return new CacheLockDriver(CacheDriverFactory::create('memcache')); } }