ScriptFUSION\Porter\Provider\AbstractProvider::disableCache PHP Method

disableCache() public method

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

Usage Example

 public function testDisableCacheSucceeds()
 {
     $this->setupCachingConnector()->shouldReceive('disableCache');
     $this->provider->disableCache();
 }