protected function InstalledConfigurationTest::setDefaultTheme in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 tests/src/Functional/InstalledConfigurationTest.php \Drupal\Tests\thunder\Functional\InstalledConfigurationTest::setDefaultTheme()
- 8.2 tests/src/Functional/InstalledConfigurationTest.php \Drupal\Tests\thunder\Functional\InstalledConfigurationTest::setDefaultTheme()
- 8.3 tests/src/Functional/InstalledConfigurationTest.php \Drupal\Tests\thunder\Functional\InstalledConfigurationTest::setDefaultTheme()
- 8.4 tests/src/Functional/InstalledConfigurationTest.php \Drupal\Tests\thunder\Functional\InstalledConfigurationTest::setDefaultTheme()
- 6.2.x tests/src/Functional/InstalledConfigurationTest.php \Drupal\Tests\thunder\Functional\InstalledConfigurationTest::setDefaultTheme()
- 6.0.x tests/src/Functional/InstalledConfigurationTest.php \Drupal\Tests\thunder\Functional\InstalledConfigurationTest::setDefaultTheme()
Set default theme for test.
Parameters
string $defaultTheme: Default Theme.
1 call to InstalledConfigurationTest::setDefaultTheme()
- InstalledConfigurationTest::testInstalledConfiguration in tests/
src/ Functional/ InstalledConfigurationTest.php - Compare active configuration with configuration Yaml files.
File
- tests/
src/ Functional/ InstalledConfigurationTest.php, line 310
Class
- InstalledConfigurationTest
- Test for checking of configuration after install of thunder profile.
Namespace
Drupal\Tests\thunder\FunctionalCode
protected function setDefaultTheme($defaultTheme) {
\Drupal::service('theme_installer')
->install([
$defaultTheme,
]);
$themeConfig = \Drupal::configFactory()
->getEditable('system.theme');
$themeConfig
->set('default', $defaultTheme);
$themeConfig
->save();
}