public function CacheWarmerAggregateTest::testInjectWarmersUsingAdd

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php, line 42

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);
}