public function FrontPageTest::testCacheTagsWithCachePluginTag in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/Views/FrontPageTest.php \Drupal\node\Tests\Views\FrontPageTest::testCacheTagsWithCachePluginTag()
Tests the cache tags when using the "tag" cache plugin.
File
- core/
modules/ node/ src/ Tests/ Views/ FrontPageTest.php, line 200 - Contains \Drupal\node\Tests\Views\FrontPageTest.
Class
- FrontPageTest
- Tests the default frontpage provided by views.
Namespace
Drupal\node\Tests\ViewsCode
public function testCacheTagsWithCachePluginTag() {
$this
->enablePageCaching();
$view = Views::getView('frontpage');
$view
->setDisplay('page_1');
$view->display_handler
->overrideOption('cache', [
'type' => 'tag',
]);
$view
->save();
$this
->doTestFrontPageViewCacheTags(TRUE);
}