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

enableCache() public method

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

Usage Example

 public function testEnableCacheSucceeds()
 {
     $this->setupCachingConnector()->shouldReceive('enableCache');
     $this->provider->enableCache();
 }