You are here

protected function DrupalKernelTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php \Drupal\KernelTests\Core\DrupalKernel\DrupalKernelTest::setUp()
  2. 9 core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php \Drupal\KernelTests\Core\DrupalKernel\DrupalKernelTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php, line 24

Class

DrupalKernelTest
Tests DIC compilation to disk.

Namespace

Drupal\KernelTests\Core\DrupalKernel

Code

protected function setUp() : void {

  // Do not invoke KernelTestBase::setUp(), since that would set up further
  // environment aspects, which would distort this test, because it tests the
  // DrupalKernel (re-)building itself.
  $this->root = static::getDrupalRoot();
  $this
    ->bootEnvironment();
}