function BlockRebuildTest::setUp

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

Overrides KernelTestBase::setUp

File

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

Class

BlockRebuildTest
Tests block_rebuild().

Namespace

Drupal\Tests\block\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->container
    ->get('theme_installer')
    ->install([
    'stark',
  ]);
  $this->container
    ->get('config.factory')
    ->getEditable('system.theme')
    ->set('default', 'stark')
    ->save();
}

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