public function RenderCacheIntegrationTest::testEntityBasedViewCacheTagsWithCachePluginNone in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Tests/RenderCacheIntegrationTest.php \Drupal\views\Tests\RenderCacheIntegrationTest::testEntityBasedViewCacheTagsWithCachePluginNone()
Tests a entity-based view's cache tags when using the "none" cache plugin.
File
- core/
modules/ views/ src/ Tests/ RenderCacheIntegrationTest.php, line 204 - Contains \Drupal\views\Tests\RenderCacheIntegrationTest.
Class
- RenderCacheIntegrationTest
- Tests the general integration between views and the render cache.
Namespace
Drupal\views\TestsCode
public function testEntityBasedViewCacheTagsWithCachePluginNone() {
$view = Views::getview('entity_test_row');
$view
->getDisplay()
->overrideOption('cache', [
'type' => 'none',
]);
$view
->save();
$this
->assertCacheTagsForEntityBasedView(FALSE);
}