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