public function CacheWarmerAggregateTest::testInjectWarmersUsingSetWarmers

File

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

Class

CacheWarmerAggregateTest

Namespace

Symfony\Component\HttpKernel\Tests\CacheWarmer

Code

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