function PreWarmerTest::testPreWarmAllCaches
Tests prewarming all caches.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ PreWarm/ PreWarmerTest.php, line 19
Class
- PreWarmerTest
- Tests the cache prewarmer.
Namespace
Drupal\KernelTests\Core\PreWarmCode
public function testPreWarmAllCaches() : void {
$prewarmer = \Drupal::service('cache_prewarmer');
$this->assertTrue($prewarmer->preWarmAllCaches());
$this->assertFalse($prewarmer->preWarmAllCaches());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.