You are here

protected function PageCacheTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 40

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();
}