function NewDefaultThemeBlocksTest::setUp
Same name in other branches
- 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\KernelCode
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.