You are here

public static function KernelTestBase::setUpBeforeClass in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::setUpBeforeClass()
  2. 9 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::setUpBeforeClass()

File

core/tests/Drupal/KernelTests/KernelTestBase.php, line 231

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\KernelTests

Code

public static function setUpBeforeClass() : void {
  parent::setUpBeforeClass();
  VarDumper::setHandler(TestVarDumper::class . '::cliHandler');

  // Change the current dir to DRUPAL_ROOT.
  chdir(static::getDrupalRoot());
}