You are here

public function CacheWarmerAggregateTest::testWarmupDoesNotCallWarmupOnOptionalWarmersWhenEnableOptionalWarmersIsNotEnabled in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php \Symfony\Component\HttpKernel\Tests\CacheWarmer\CacheWarmerAggregateTest::testWarmupDoesNotCallWarmupOnOptionalWarmersWhenEnableOptionalWarmersIsNotEnabled()

File

vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php, line 77

Class

CacheWarmerAggregateTest

Namespace

Symfony\Component\HttpKernel\Tests\CacheWarmer

Code

public function testWarmupDoesNotCallWarmupOnOptionalWarmersWhenEnableOptionalWarmersIsNotEnabled() {
  $warmer = $this
    ->getCacheWarmerMock();
  $warmer
    ->expects($this
    ->once())
    ->method('isOptional')
    ->will($this
    ->returnValue(true));
  $warmer
    ->expects($this
    ->never())
    ->method('warmUp');
  $aggregate = new CacheWarmerAggregate(array(
    $warmer,
  ));
  $aggregate
    ->warmUp(self::$cacheDir);
}