You are here

protected function BlockRebuildTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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 27

Class

BlockRebuildTest
Tests block_rebuild().

Namespace

Drupal\Tests\block\Kernel

Code

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