You are here

protected function DynamicPageCacheIntegrationTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php \Drupal\Tests\dynamic_page_cache\Functional\DynamicPageCacheIntegrationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/dynamic_page_cache/tests/src/Functional/DynamicPageCacheIntegrationTest.php, line 43

Class

DynamicPageCacheIntegrationTest
Enables the Dynamic Page Cache and tests it in various scenarios.

Namespace

Drupal\Tests\dynamic_page_cache\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Uninstall the page_cache module; we want to test the Dynamic Page Cache
  // alone.
  \Drupal::service('module_installer')
    ->uninstall([
    'page_cache',
  ]);
}