You are here

protected function OliveroMessagesTest::setUp in Drupal 9

Overrides JsMessageTest::setUp

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/OliveroMessagesTest.php, line 34

Class

OliveroMessagesTest
Runs OliveroMessagesTest in Olivero.

Namespace

Drupal\FunctionalJavascriptTests\Theme

Code

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();
}