function PageCacheTagsTestBase::setUp
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase::setUp()
- 8.9.x core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php \Drupal\system\Tests\Cache\PageCacheTagsTestBase::setUp()
- 8.9.x core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase::setUp()
- 10 core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase::setUp()
Overrides BrowserTestBase::setUp
4 calls to PageCacheTagsTestBase::setUp()
- EntityCacheTagsTestBase::setUp in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php - NavigationUserBlockTest::setUp in core/
modules/ navigation/ tests/ src/ Functional/ NavigationUserBlockTest.php - TourCacheTagsTest::setUp in core/
modules/ tour/ tests/ src/ Functional/ TourCacheTagsTest.php - UserNavigationBlockTest::setUp in core/
modules/ navigation/ tests/ src/ Functional/ UserNavigationBlockTest.php
4 methods override PageCacheTagsTestBase::setUp()
- EntityCacheTagsTestBase::setUp in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php - NavigationUserBlockTest::setUp in core/
modules/ navigation/ tests/ src/ Functional/ NavigationUserBlockTest.php - TourCacheTagsTest::setUp in core/
modules/ tour/ tests/ src/ Functional/ TourCacheTagsTest.php - UserNavigationBlockTest::setUp in core/
modules/ navigation/ tests/ src/ Functional/ UserNavigationBlockTest.php
File
-
core/
modules/ system/ tests/ src/ Functional/ Cache/ PageCacheTagsTestBase.php, line 18
Class
- PageCacheTagsTestBase
- Provides helper methods for page cache tags tests.
Namespace
Drupal\Tests\system\Functional\CacheCode
protected function setUp() : void {
parent::setUp();
// Enable page caching.
$config = $this->config('system.performance');
$config->set('cache.page.max_age', 3600);
$config->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.