You are here

protected function PageCacheTest::setUp in Drupal 10

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()
  2. 9 core/modules/page_cache/tests/src/Functional/PageCacheTest.php \Drupal\Tests\page_cache\Functional\PageCacheTest::setUp()

File

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

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