ScriptFUSIONTest\Integration\Porter\PorterTest::testApplyCacheAdvice PHP Method

testApplyCacheAdvice() public method

    public function testApplyCacheAdvice()
    {
        $this->porter->registerProvider($provider = \Mockery::mock(implode(',', [Provider::class, CacheToggle::class]))->shouldReceive('fetch')->andReturn(new \EmptyIterator())->shouldReceive('disableCache')->once()->shouldReceive('enableCache')->once()->getMock());
        $this->porter->import($specification = new ImportSpecification(MockFactory::mockResource($provider)));
        $this->porter->import($specification->setCacheAdvice(CacheAdvice::SHOULD_CACHE()));
    }