You are here

public function CacheWarmerAggregateTest::testWarmupDoesCallWarmupOnOptionalWarmersWhenEnableOptionalWarmersIsEnabled 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::testWarmupDoesCallWarmupOnOptionalWarmersWhenEnableOptionalWarmersIsEnabled()

File

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

Class

CacheWarmerAggregateTest

Namespace

Symfony\Component\HttpKernel\Tests\CacheWarmer

Code

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