function BlockRebuildTest::setUpBeforeClass

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

Overrides KernelTestBase::setUpBeforeClass

File

core/modules/block/tests/src/Kernel/BlockRebuildTest.php, line 37

Class

BlockRebuildTest
Tests block_rebuild().

Namespace

Drupal\Tests\block\Kernel

Code

public static function setUpBeforeClass() : void {
    parent::setUpBeforeClass();
    // @todo Once block_rebuild() is refactored to auto-loadable code, remove
    //   this require statement.
    require_once static::getDrupalRoot() . '/core/modules/block/block.module';
}

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