function FrontPageTest::testCacheTagsWithCachePluginTime
Same name in other branches
- 9 core/modules/node/tests/src/Functional/Views/FrontPageTest.php \Drupal\Tests\node\Functional\Views\FrontPageTest::testCacheTagsWithCachePluginTime()
- 8.9.x core/modules/node/tests/src/Functional/Views/FrontPageTest.php \Drupal\Tests\node\Functional\Views\FrontPageTest::testCacheTagsWithCachePluginTime()
- 11.x core/modules/node/tests/src/Functional/Views/FrontPageTest.php \Drupal\Tests\node\Functional\Views\FrontPageTest::testCacheTagsWithCachePluginTime()
Tests the cache tags when using the "time" cache plugin.
File
-
core/
modules/ node/ tests/ src/ Functional/ Views/ FrontPageTest.php, line 202
Class
- FrontPageTest
- Tests the default frontpage provided by views.
Namespace
Drupal\Tests\node\Functional\ViewsCode
public function testCacheTagsWithCachePluginTime() : void {
$this->enablePageCaching();
$view = Views::getView('frontpage');
$view->setDisplay('page_1');
$view->display_handler
->overrideOption('cache', [
'type' => 'time',
'options' => [
'results_lifespan' => 3600,
'output_lifespan' => 3600,
],
]);
$view->save();
$this->doTestFrontPageViewCacheTags(TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.