protected function OliveroMessagesTest::setUp in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalJavascriptTests/Theme/OliveroMessagesTest.php \Drupal\FunctionalJavascriptTests\Theme\OliveroMessagesTest::setUp()
Overrides JsMessageTest::setUp
File
- core/
tests/ Drupal/ FunctionalJavascriptTests/ Theme/ OliveroMessagesTest.php, line 34
Class
- OliveroMessagesTest
- Runs OliveroMessagesTest in Olivero.
Namespace
Drupal\FunctionalJavascriptTests\ThemeCode
protected function setUp() : void {
parent::setUp();
// Enable the theme.
\Drupal::service('theme_installer')
->install([
'olivero',
]);
$theme_config = \Drupal::configFactory()
->getEditable('system.theme');
$theme_config
->set('default', 'olivero');
$theme_config
->save();
}