function NewDefaultThemeBlocksTest::setUp

Same name and namespace in other branches
  1. 11.x 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',
  ]);
  /** @var \Drupal\Core\Extension\ThemeInstallerInterface $themeInstaller */
  $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.