You are here

public function CacheWarmerAggregateTest::testInjectWarmersUsingAdd in Zircon Profile 8.0

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

File

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

Class

CacheWarmerAggregateTest

Namespace

Symfony\Component\HttpKernel\Tests\CacheWarmer

Code

public function testInjectWarmersUsingAdd() {
  $warmer = $this
    ->getCacheWarmerMock();
  $warmer
    ->expects($this
    ->once())
    ->method('warmUp');
  $aggregate = new CacheWarmerAggregate();
  $aggregate
    ->add($warmer);
  $aggregate
    ->warmUp(self::$cacheDir);
}