function let(AdapterInterface $adapter, CacheInterface $cache) { $this->adapter = $adapter; $this->cache = $cache; $cache->load()->shouldBeCalled(); $this->beConstructedWith($adapter, $cache); }
/** * Flush the cache. * * @return $this */ public function flushCache() { $this->cache->flush(); return $this; }