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

isCacheEnabled() public method

public isCacheEnabled ( )
    public function isCacheEnabled()
    {
        $connector = $this->getConnector();
        if (!$connector instanceof CacheToggle) {
            return false;
        }
        return $connector->isCacheEnabled();
    }

Usage Example

 public function testCacheEnabledMirrorsCachingConnector()
 {
     $this->setupCachingConnector()->shouldReceive('isCacheEnabled')->andReturn(true, false);
     self::assertTrue($this->provider->isCacheEnabled());
     self::assertFalse($this->provider->isCacheEnabled());
 }