function KernelTestBase::setUpBeforeClass

Same name in other branches
  1. 8.9.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::setUpBeforeClass()
  2. 10 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::setUpBeforeClass()
  3. 11.x core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::setUpBeforeClass()
1 call to KernelTestBase::setUpBeforeClass()
BlockRebuildTest::setUpBeforeClass in core/modules/block/tests/src/Kernel/BlockRebuildTest.php
1 method overrides KernelTestBase::setUpBeforeClass()
BlockRebuildTest::setUpBeforeClass in core/modules/block/tests/src/Kernel/BlockRebuildTest.php

File

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

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\KernelTests

Code

public static function setUpBeforeClass() {
    parent::setUpBeforeClass();
    VarDumper::setHandler(TestVarDumper::class . '::cliHandler');
    // Change the current dir to DRUPAL_ROOT.
    chdir(static::getDrupalRoot());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.