function NewDefaultThemeBlocksTest::setUp

Same name in other branches
  1. 10 core/modules/block/tests/src/Kernel/NewDefaultThemeBlocksTest.php \Drupal\Tests\block\Kernel\NewDefaultThemeBlocksTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/block/tests/src/Kernel/NewDefaultThemeBlocksTest.php, line 43

Class

NewDefaultThemeBlocksTest
Tests that a new default theme gets blocks.

Namespace

Drupal\Tests\block\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
        'system',
    ]);
    $this->themeInstaller = $this->container
        ->get('theme_installer');
    $this->defaultTheme = $this->config('system.theme')
        ->get('default');
}

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