function PageCacheTagsTestBase::setUp
Same name in this branch
- 8.9.x core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase::setUp()
Same name in other branches
- 9 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()
- 11.x core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase::setUp()
Overrides WebTestBase::setUp
1 call to PageCacheTagsTestBase::setUp()
- EntityCacheTagsTestBase::setUp in core/
modules/ system/ src/ Tests/ Entity/ EntityCacheTagsTestBase.php - Sets up a Drupal site for running functional and integration tests.
1 method overrides PageCacheTagsTestBase::setUp()
- EntityCacheTagsTestBase::setUp in core/
modules/ system/ src/ Tests/ Entity/ EntityCacheTagsTestBase.php - Sets up a Drupal site for running functional and integration tests.
File
-
core/
modules/ system/ src/ Tests/ Cache/ PageCacheTagsTestBase.php, line 31
Class
- PageCacheTagsTestBase
- Provides helper methods for page cache tags tests.
Namespace
Drupal\system\Tests\CacheCode
protected function setUp() {
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.