You are here

protected function JsMessageTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php \Drupal\FunctionalJavascriptTests\Core\JsMessageTest::setUp()

Overrides BrowserTestBase::setUp

File

core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php, line 28

Class

JsMessageTest
Tests core/drupal.message library.

Namespace

Drupal\FunctionalJavascriptTests\Core

Code

protected function setUp() {
  parent::setUp();

  // Enable the theme.
  \Drupal::service('theme_installer')
    ->install([
    'test_messages',
  ]);
  $theme_config = \Drupal::configFactory()
    ->getEditable('system.theme');
  $theme_config
    ->set('default', 'test_messages');
  $theme_config
    ->save();
}