function PromotedContentPageTest::testCacheTagsWithCachePluginTag
Same name and namespace in other branches
- 11.x core/modules/node/tests/src/Functional/Views/PromotedContentPageTest.php \Drupal\Tests\node\Functional\Views\PromotedContentPageTest::testCacheTagsWithCachePluginTag()
Tests the cache tags when using the "tag" cache plugin.
File
-
core/
modules/ node/ tests/ src/ Functional/ Views/ PromotedContentPageTest.php, line 194
Class
- PromotedContentPageTest
- Tests the promoted content view provided with views.
Namespace
Drupal\Tests\node\Functional\ViewsCode
public function testCacheTagsWithCachePluginTag() : void {
$this->enablePageCaching();
$view = Views::getView('promoted_content');
$view->setDisplay('page_1');
$view->display_handler
->overrideOption('cache', [
'type' => 'tag',
]);
$view->save();
$this->doTestPromotedContentPageViewCacheTags(TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.