diff --git a/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php b/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php index 16c6c6a..63a7e97 100644 --- a/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php +++ b/core/modules/aggregator/src/Tests/AggregatorRenderingTest.php @@ -26,8 +26,6 @@ class AggregatorRenderingTest extends AggregatorTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - $this->drupalPlaceBlock('page_title_block'); } diff --git a/core/modules/block/src/Tests/BlockInstallTest.php b/core/modules/block/src/Tests/BlockInstallTest.php index 2e49440..84819e6 100644 --- a/core/modules/block/src/Tests/BlockInstallTest.php +++ b/core/modules/block/src/Tests/BlockInstallTest.php @@ -16,16 +16,6 @@ */ class BlockInstallTest extends WebTestBase { - /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - - $this->enableCacheHeaders(); - } - - public function testCacheTagInvalidationUponInstallation() { // Warm the page cache. $this->drupalGet(''); diff --git a/core/modules/block/src/Tests/BlockSystemBrandingTest.php b/core/modules/block/src/Tests/BlockSystemBrandingTest.php index 5cda4f6..a78f675 100644 --- a/core/modules/block/src/Tests/BlockSystemBrandingTest.php +++ b/core/modules/block/src/Tests/BlockSystemBrandingTest.php @@ -26,9 +26,6 @@ class BlockSystemBrandingTest extends BlockTestBase { */ protected function setUp() { parent::setUp(); - - $this->enableCacheHeaders(); - // Set a site slogan. $this->config('system.site') ->set('slogan', 'Community plumbing') diff --git a/core/modules/block/src/Tests/Views/DisplayBlockTest.php b/core/modules/block/src/Tests/Views/DisplayBlockTest.php index 29f55b3..f7b3ffe 100644 --- a/core/modules/block/src/Tests/Views/DisplayBlockTest.php +++ b/core/modules/block/src/Tests/Views/DisplayBlockTest.php @@ -43,7 +43,6 @@ class DisplayBlockTest extends ViewTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); ViewTestData::createTestViews(get_class($this), array('block_test_views')); $this->enableViewsTestModule(); } diff --git a/core/modules/book/src/Tests/BookTest.php b/core/modules/book/src/Tests/BookTest.php index a5fcf14..b1c9fa3 100644 --- a/core/modules/book/src/Tests/BookTest.php +++ b/core/modules/book/src/Tests/BookTest.php @@ -69,7 +69,6 @@ protected function setUp() { parent::setUp(); $this->drupalPlaceBlock('system_breadcrumb_block'); $this->drupalPlaceBlock('page_title_block'); - $this->enableCacheHeaders(); // node_access_test requires a node_access_rebuild(). node_access_rebuild(); diff --git a/core/modules/comment/src/Tests/CommentAnonymousTest.php b/core/modules/comment/src/Tests/CommentAnonymousTest.php index 57b4846..b7e5bd8 100644 --- a/core/modules/comment/src/Tests/CommentAnonymousTest.php +++ b/core/modules/comment/src/Tests/CommentAnonymousTest.php @@ -19,7 +19,6 @@ class CommentAnonymousTest extends CommentTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); // Enable anonymous and authenticated user comments. user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array( 'access comments', diff --git a/core/modules/comment/src/Tests/CommentCacheTagsTest.php b/core/modules/comment/src/Tests/CommentCacheTagsTest.php index 946bdf9..15142d8 100644 --- a/core/modules/comment/src/Tests/CommentCacheTagsTest.php +++ b/core/modules/comment/src/Tests/CommentCacheTagsTest.php @@ -46,7 +46,6 @@ class CommentCacheTagsTest extends EntityWithUriCacheTagsTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); // Give anonymous users permission to view comments, so that we can verify // the cache tags of cached versions of comment pages. $user_role = Role::load(RoleInterface::ANONYMOUS_ID); diff --git a/core/modules/comment/src/Tests/CommentRssTest.php b/core/modules/comment/src/Tests/CommentRssTest.php index 57d82aa..2a87859 100644 --- a/core/modules/comment/src/Tests/CommentRssTest.php +++ b/core/modules/comment/src/Tests/CommentRssTest.php @@ -34,8 +34,6 @@ class CommentRssTest extends CommentTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - // Setup the rss view display. EntityViewDisplay::create([ 'status' => TRUE, diff --git a/core/modules/config/src/Tests/CacheabilityMetadataConfigOverrideIntegrationTest.php b/core/modules/config/src/Tests/CacheabilityMetadataConfigOverrideIntegrationTest.php index aa4b73d..22d0b11 100644 --- a/core/modules/config/src/Tests/CacheabilityMetadataConfigOverrideIntegrationTest.php +++ b/core/modules/config/src/Tests/CacheabilityMetadataConfigOverrideIntegrationTest.php @@ -30,7 +30,6 @@ class CacheabilityMetadataConfigOverrideIntegrationTest extends WebTestBase { public function setUp() { parent::setUp(); - $this->enableCacheHeaders(); // @todo If our block does not contain any content then the cache context // is not bubbling up and the test fails. Remove this line once the cache // contexts are properly set. See https://www.drupal.org/node/2529980. diff --git a/core/modules/contact/src/Tests/ContactPersonalTest.php b/core/modules/contact/src/Tests/ContactPersonalTest.php index 3c5e3d2..d133240 100644 --- a/core/modules/contact/src/Tests/ContactPersonalTest.php +++ b/core/modules/contact/src/Tests/ContactPersonalTest.php @@ -51,8 +51,6 @@ class ContactPersonalTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - // Create an admin user. $this->adminUser = $this->drupalCreateUser(array('administer contact forms', 'administer users', 'administer account settings', 'access site reports')); diff --git a/core/modules/contact/src/Tests/ContactSitewideTest.php b/core/modules/contact/src/Tests/ContactSitewideTest.php index b3480db..39cd34a 100644 --- a/core/modules/contact/src/Tests/ContactSitewideTest.php +++ b/core/modules/contact/src/Tests/ContactSitewideTest.php @@ -38,8 +38,6 @@ class ContactSitewideTest extends WebTestBase { */ protected function setUp() { parent::setUp(); - - $this->enableCacheHeaders(); $this->drupalPlaceBlock('system_breadcrumb_block'); $this->drupalPlaceBlock('local_actions_block'); $this->drupalPlaceBlock('page_title_block'); diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php index 52bc0a6..9ed2e46 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php @@ -55,15 +55,6 @@ protected $defaultCacheContexts = ['languages:language_interface', 'theme', 'url.query_args:_wrapper_format', 'user.permissions']; /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - - $this->enableCacheHeaders(); - } - - /** * Tests the basic translation UI. */ function testTranslationUI() { diff --git a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php index 0507aac..b602be0 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php @@ -35,8 +35,6 @@ class ContentTranslationWorkflowsTest extends ContentTranslationTestBase { protected function setUp() { parent::setUp(); - - $this->enableCacheHeaders(); $this->setupEntity(); } diff --git a/core/modules/forum/src/Tests/ForumIndexTest.php b/core/modules/forum/src/Tests/ForumIndexTest.php index c24315a..e84a3eb 100644 --- a/core/modules/forum/src/Tests/ForumIndexTest.php +++ b/core/modules/forum/src/Tests/ForumIndexTest.php @@ -26,7 +26,6 @@ class ForumIndexTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); // Create a test user. $web_user = $this->drupalCreateUser(['create forum content', 'edit own forum content', 'edit any forum content', 'administer nodes', 'administer forums']); $this->drupalLogin($web_user); diff --git a/core/modules/forum/src/Tests/ForumTest.php b/core/modules/forum/src/Tests/ForumTest.php index 475eb0b..974e400 100644 --- a/core/modules/forum/src/Tests/ForumTest.php +++ b/core/modules/forum/src/Tests/ForumTest.php @@ -82,7 +82,6 @@ class ForumTest extends WebTestBase { */ protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->drupalPlaceBlock('system_breadcrumb_block'); $this->drupalPlaceBlock('page_title_block'); diff --git a/core/modules/history/src/Tests/HistoryTest.php b/core/modules/history/src/Tests/HistoryTest.php index 892a60f..3340f1a 100644 --- a/core/modules/history/src/Tests/HistoryTest.php +++ b/core/modules/history/src/Tests/HistoryTest.php @@ -41,7 +41,6 @@ class HistoryTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->drupalCreateContentType(array('type' => 'page', 'name' => 'Basic page')); $this->user = $this->drupalCreateUser(array('create page content', 'access content')); diff --git a/core/modules/image/src/Tests/ImageFieldDisplayTest.php b/core/modules/image/src/Tests/ImageFieldDisplayTest.php index 444a4f2..c4cf485 100644 --- a/core/modules/image/src/Tests/ImageFieldDisplayTest.php +++ b/core/modules/image/src/Tests/ImageFieldDisplayTest.php @@ -29,15 +29,6 @@ class ImageFieldDisplayTest extends ImageFieldTestBase { public static $modules = array('field_ui'); /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - - $this->enableCacheHeaders(); - } - - /** * Test image formatters on node display for public files. */ function testImageFieldFormattersPublic() { diff --git a/core/modules/menu_ui/src/Tests/MenuNodeTest.php b/core/modules/menu_ui/src/Tests/MenuNodeTest.php index 694c2c3..b3397cc 100644 --- a/core/modules/menu_ui/src/Tests/MenuNodeTest.php +++ b/core/modules/menu_ui/src/Tests/MenuNodeTest.php @@ -34,7 +34,6 @@ class MenuNodeTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->drupalPlaceBlock('system_menu_block:main'); $this->drupalPlaceBlock('page_title_block'); diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php index b7f17b5..326db81 100644 --- a/core/modules/menu_ui/src/Tests/MenuTest.php +++ b/core/modules/menu_ui/src/Tests/MenuTest.php @@ -70,7 +70,6 @@ class MenuTest extends MenuWebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->drupalPlaceBlock('page_title_block'); $this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article')); diff --git a/core/modules/node/src/Tests/NodeBlockFunctionalTest.php b/core/modules/node/src/Tests/NodeBlockFunctionalTest.php index 731ec2c..386188f 100644 --- a/core/modules/node/src/Tests/NodeBlockFunctionalTest.php +++ b/core/modules/node/src/Tests/NodeBlockFunctionalTest.php @@ -45,8 +45,6 @@ class NodeBlockFunctionalTest extends NodeTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - // Create users and test node. $this->adminUser = $this->drupalCreateUser(array('administer content types', 'administer nodes', 'administer blocks', 'access content overview')); $this->webUser = $this->drupalCreateUser(array('access content', 'create article content')); diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php index 92ad3c0..a8fa54d 100644 --- a/core/modules/node/src/Tests/NodeTypeTest.php +++ b/core/modules/node/src/Tests/NodeTypeTest.php @@ -26,15 +26,6 @@ class NodeTypeTest extends NodeTestBase { public static $modules = ['field_ui']; /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - - $this->enableCacheHeaders(); - } - - /** * Ensures that node type functions (node_type_get_*) work correctly. * * Load available node types and validate the returned data. diff --git a/core/modules/node/src/Tests/Views/FrontPageTest.php b/core/modules/node/src/Tests/Views/FrontPageTest.php index 9ecc91f..5cd78a8 100644 --- a/core/modules/node/src/Tests/Views/FrontPageTest.php +++ b/core/modules/node/src/Tests/Views/FrontPageTest.php @@ -47,7 +47,6 @@ class FrontPageTest extends ViewTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->nodeStorage = $this->container->get('entity.manager') ->getStorage('node'); } diff --git a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php index 0d1a63b..22ae7b2 100644 --- a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php +++ b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php @@ -33,7 +33,6 @@ class PageCacheTagsIntegrationTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->enablePageCaching(); } diff --git a/core/modules/page_cache/src/Tests/PageCacheTest.php b/core/modules/page_cache/src/Tests/PageCacheTest.php index 0b833b9..8c1a2d3 100644 --- a/core/modules/page_cache/src/Tests/PageCacheTest.php +++ b/core/modules/page_cache/src/Tests/PageCacheTest.php @@ -37,7 +37,6 @@ class PageCacheTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->config('system.site') ->set('name', 'Drupal') ->set('page.front', '/test-page') @@ -51,6 +50,10 @@ protected function setUp() { * persisted. */ function testPageCacheTags() { + // Ensure that the sending out of the cache tags / contexts is independent + // from the page cache. + $this->setCacheHeaders(FALSE); + $config = $this->config('system.performance'); $config->set('cache.page.max_age', 300); $config->save(); diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php index d5932a7..b42831b 100644 --- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php +++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php @@ -43,7 +43,6 @@ class ResponsiveImageFieldDisplayTest extends ImageFieldTestBase { */ protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); // Create user. $this->adminUser = $this->drupalCreateUser(array( diff --git a/core/modules/rest/src/Tests/PageCacheTest.php b/core/modules/rest/src/Tests/PageCacheTest.php index ea943e9..3ae0084 100644 --- a/core/modules/rest/src/Tests/PageCacheTest.php +++ b/core/modules/rest/src/Tests/PageCacheTest.php @@ -22,15 +22,6 @@ class PageCacheTest extends RESTTestBase { public static $modules = array('hal', 'rest', 'entity_test'); /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - - $this->enableCacheHeaders(); - } - - /** * Tests that configuration changes also clear the page cache. */ public function testConfigChangePageCache() { diff --git a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php index bf1ef9e..8fdbec4 100644 --- a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php +++ b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php @@ -61,8 +61,6 @@ class StyleSerializerTest extends PluginTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - ViewTestData::createTestViews(get_class($this), array('rest_test_views')); $this->adminUser = $this->drupalCreateUser(array('administer views', 'administer entity_test content', 'access user profiles', 'view test entity')); diff --git a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php index 026db6c..6a74718 100644 --- a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php +++ b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php @@ -40,7 +40,6 @@ class SearchPageCacheTagsTest extends SearchTestBase { */ protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); // Create user. $this->searchingUser = $this->drupalCreateUser(array('search content', 'access user profiles')); diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index 21ad1f9..658fe03 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -761,7 +761,6 @@ protected function prepareSettings() { 'value' => FALSE, 'required' => TRUE, ]; - $this->writeSettings($settings); // Allow for test-specific overrides. $settings_testing_file = DRUPAL_ROOT . '/' . $this->originalSite . '/settings.testing.php'; @@ -813,6 +812,8 @@ protected function initSettings() { // TestBase::restoreEnvironment() will delete the entire site directory. // Not using File API; a potential error must trigger a PHP warning. chmod(DRUPAL_ROOT . '/' . $this->siteDirectory, 0777); + + $this->setCacheHeaders(); } /** @@ -3004,9 +3005,12 @@ protected function assertNoCacheTag($cache_tag) { } /** - * Writes the needed cache headers. + * Sets the setting whether to send cacheability headers. + * + * @param bool $value + * (optional) Should the cache headers be send. */ - protected function enableCacheHeaders() { + protected function setCacheHeaders($value = TRUE) { // Send cacheability headers so tests can check their values. $settings['settings']['send_cacheability_headers'] = (object) [ 'value' => TRUE, diff --git a/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php b/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php index 5c5f762..b4f40bd 100644 --- a/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php +++ b/core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php @@ -29,8 +29,6 @@ protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - // Enable page caching. $config = $this->config('system.performance'); $config->set('cache.page.max_age', 3600); diff --git a/core/modules/system/src/Tests/System/TokenReplaceWebTest.php b/core/modules/system/src/Tests/System/TokenReplaceWebTest.php index c330e39..ba94e51 100644 --- a/core/modules/system/src/Tests/System/TokenReplaceWebTest.php +++ b/core/modules/system/src/Tests/System/TokenReplaceWebTest.php @@ -26,15 +26,6 @@ class TokenReplaceWebTest extends WebTestBase { public static $modules = ['token_test', 'filter', 'node']; /** - * @inheritDoc - */ - protected function setUp() { - parent::setUp(); - - $this->enableCacheHeaders(); - } - - /** * Tests a token replacement on an actual website. */ public function testTokens() { diff --git a/core/modules/toolbar/src/Tests/ToolbarCacheContextsTest.php b/core/modules/toolbar/src/Tests/ToolbarCacheContextsTest.php index 8277811..759f646 100644 --- a/core/modules/toolbar/src/Tests/ToolbarCacheContextsTest.php +++ b/core/modules/toolbar/src/Tests/ToolbarCacheContextsTest.php @@ -60,8 +60,6 @@ class ToolbarCacheContextsTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - $this->adminUser = $this->drupalCreateUser($this->perms); $this->adminUser2 = $this->drupalCreateUser($this->perms); } diff --git a/core/modules/tracker/src/Tests/TrackerTest.php b/core/modules/tracker/src/Tests/TrackerTest.php index 7a7c0e9..425c4a1 100644 --- a/core/modules/tracker/src/Tests/TrackerTest.php +++ b/core/modules/tracker/src/Tests/TrackerTest.php @@ -51,8 +51,6 @@ class TrackerTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); - $this->drupalCreateContentType(array('type' => 'page', 'name' => 'Basic page')); $permissions = array('access comments', 'create page content', 'post comments', 'skip comment approval'); diff --git a/core/modules/views/src/Tests/Handler/FieldWebTest.php b/core/modules/views/src/Tests/Handler/FieldWebTest.php index 135f364..3f9a184 100644 --- a/core/modules/views/src/Tests/Handler/FieldWebTest.php +++ b/core/modules/views/src/Tests/Handler/FieldWebTest.php @@ -48,7 +48,6 @@ class FieldWebTest extends HandlerTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->enableViewsTestModule(); } diff --git a/core/modules/views/src/Tests/Plugin/CacheWebTest.php b/core/modules/views/src/Tests/Plugin/CacheWebTest.php index 2601ed7..85194e2 100644 --- a/core/modules/views/src/Tests/Plugin/CacheWebTest.php +++ b/core/modules/views/src/Tests/Plugin/CacheWebTest.php @@ -41,7 +41,6 @@ class CacheWebTest extends PluginTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->enableViewsTestModule(); } diff --git a/core/modules/views/src/Tests/Plugin/DisplayPageWebTest.php b/core/modules/views/src/Tests/Plugin/DisplayPageWebTest.php index 437ce0b..1ce4f59 100644 --- a/core/modules/views/src/Tests/Plugin/DisplayPageWebTest.php +++ b/core/modules/views/src/Tests/Plugin/DisplayPageWebTest.php @@ -39,7 +39,6 @@ class DisplayPageWebTest extends PluginTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->enableViewsTestModule(); $this->drupalPlaceBlock('local_tasks_block'); } diff --git a/core/modules/views/src/Tests/Plugin/ExposedFormTest.php b/core/modules/views/src/Tests/Plugin/ExposedFormTest.php index b027844..8906cfd 100644 --- a/core/modules/views/src/Tests/Plugin/ExposedFormTest.php +++ b/core/modules/views/src/Tests/Plugin/ExposedFormTest.php @@ -40,7 +40,6 @@ class ExposedFormTest extends ViewTestBase { protected function setUp() { parent::setUp(); - $this->enableCacheHeaders(); $this->drupalCreateContentType(array('type' => 'article')); // Create some random nodes. diff --git a/core/modules/views/src/Tests/Plugin/PagerTest.php b/core/modules/views/src/Tests/Plugin/PagerTest.php index 593dec8..bdd95ed 100644 --- a/core/modules/views/src/Tests/Plugin/PagerTest.php +++ b/core/modules/views/src/Tests/Plugin/PagerTest.php @@ -42,16 +42,6 @@ class PagerTest extends PluginTestBase { protected $localeStorage; /** - * {@inheritdoc} - */ - protected function setUp($import_test_views = TRUE) { - parent::setUp($import_test_views); - - $this->enableCacheHeaders(); - } - - - /** * Pagers was sometimes not stored. * * @see https://www.drupal.org/node/652712