function PageCacheTest::setUp

Same name in other branches
  1. 9 core/modules/page_cache/tests/src/Functional/PageCacheTest.php \Drupal\Tests\page_cache\Functional\PageCacheTest::setUp()
  2. 9 core/modules/hal/tests/src/Functional/page_cache/PageCacheTest.php \Drupal\Tests\hal\Functional\page_cache\PageCacheTest::setUp()
  3. 8.9.x core/modules/page_cache/tests/src/Functional/PageCacheTest.php \Drupal\Tests\page_cache\Functional\PageCacheTest::setUp()
  4. 11.x core/modules/page_cache/tests/src/Functional/PageCacheTest.php \Drupal\Tests\page_cache\Functional\PageCacheTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/page_cache/tests/src/Functional/PageCacheTest.php, line 39

Class

PageCacheTest
Enables the page cache and tests it with various HTTP requests.

Namespace

Drupal\Tests\page_cache\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->config('system.site')
        ->set('name', 'Drupal')
        ->set('page.front', '/test-page')
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.