diff --git a/core/modules/system/src/Tests/Theme/MessageTest.php b/core/modules/system/src/Tests/Theme/MessageTest.php index 451ec9a..3106489 100644 --- a/core/modules/system/src/Tests/Theme/MessageTest.php +++ b/core/modules/system/src/Tests/Theme/MessageTest.php @@ -25,6 +25,10 @@ class MessageTest extends KernelTestBase { * Tests setting messages output. */ function testMessages() { + // Enable the Classy theme. + \Drupal::service('theme_handler')->install(['classy']); + $this->config('system.theme')->set('default', 'classy')->save(); + drupal_set_message('An error occurred', 'error'); drupal_set_message('But then something nice happened'); $messages = array( diff --git a/core/modules/system/templates/status-messages.html.twig b/core/modules/system/templates/status-messages.html.twig index a2f3631..6c366ad 100644 --- a/core/modules/system/templates/status-messages.html.twig +++ b/core/modules/system/templates/status-messages.html.twig @@ -26,13 +26,8 @@ */ #} {% for type, messages in message_list %} - {% - set classes = [ - 'messages', - 'messages--' ~ type, - ] - %} -