public function disableCache() { $connector = $this->getConnector(); if (!$connector instanceof CacheToggle) { throw CacheUnavailableException::modify(); } $connector->disableCache(); }
public function testDisableCacheSucceeds() { $this->setupCachingConnector()->shouldReceive('disableCache'); $this->provider->disableCache(); }