You are here

protected function PageCacheTagsTestBase::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php \Drupal\system\Tests\Cache\PageCacheTagsTestBase::setUp()
  2. 8 core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase::setUp()
Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase::setUp()

Overrides BrowserTestBase::setUp

2 calls to PageCacheTagsTestBase::setUp()
EntityCacheTagsTestBase::setUp in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
TourCacheTagsTest::setUp in core/modules/tour/tests/src/Functional/TourCacheTagsTest.php
2 methods override PageCacheTagsTestBase::setUp()
EntityCacheTagsTestBase::setUp in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
TourCacheTagsTest::setUp in core/modules/tour/tests/src/Functional/TourCacheTagsTest.php

File

core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php, line 24

Class

PageCacheTagsTestBase
Provides helper methods for page cache tags tests.

Namespace

Drupal\Tests\system\Functional\Cache

Code

protected function setUp() {
  parent::setUp();

  // Enable page caching.
  $config = $this
    ->config('system.performance');
  $config
    ->set('cache.page.max_age', 3600);
  $config
    ->save();
}