diff --git a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php index 69ec86f..27cb41a 100644 --- a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php +++ b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php @@ -9,7 +9,6 @@ use Drupal\big_pipe\Render\BigPipeMarkup; use Drupal\Core\Session\AccountInterface; -use Drupal\Core\StringTranslation\PluralTranslatableMarkup; use Drupal\Core\Url; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -88,25 +87,6 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf if ($container && $user) { $status_messages->embeddedAjaxResponseCommands = [ [ - 'command' => 'settings', - 'settings' => [ - 'ajaxPageState' => [ - 'theme' => 'classy', - 'libraries' => 'big_pipe/big_pipe,classy/base,classy/messages,core/drupal.active-link,core/html5shiv,core/normalize,system/base', - ], - 'pluralDelimiter' => PluralTranslatableMarkup::DELIMITER, - 'user' => [ - 'uid' => '1', - 'permissionsHash' => $container->get('user_permissions_hash_generator')->generate($user), - ], - ], - 'merge' => TRUE, - ], - [ - 'command' => 'add_css', - 'data' => '' . "\n" - ], - [ 'command' => 'insert', 'method' => 'replaceWith', 'selector' => '[data-big-pipe-placeholder-id="callback=Drupal%5CCore%5CRender%5CElement%5CStatusMessages%3A%3ArenderMessages&args[0]&token=_HAdUpwWmet0TOTe2PSiJuMntExoshbm1kh2wQzzzAA"]', @@ -114,7 +94,7 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf 'settings' => NULL, ], ]; - $status_messages->embeddedHtmlResponse = '' . "\n" . "\n" . ' ' . "\n \n"; + $status_messages->embeddedHtmlResponse = '' . "\n \n"; } diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 614ad9e..3801d12 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -1794,6 +1794,12 @@ function system_update_8301() { } /** + * Clear caches to ensure Classy's message library is always added. + */ +function system_update_8302() { +} + +/** * Move revision metadata fields to the revision table. */ function system_update_8400(&$sandbox) { diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php index ee41968..534f614 100644 --- a/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php +++ b/core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php @@ -90,13 +90,13 @@ public function testChanges() { $active_theme = $this->themeManager->getActiveTheme(); // Make sure we are not testing the wrong theme. $this->assertEqual('test_theme', $active_theme->getName()); - $this->assertEqual(['classy/base', 'core/normalize', 'test_theme/global-styling'], $active_theme->getLibraries()); + $this->assertEqual(['classy/base', 'classy/messages', 'core/normalize', 'test_theme/global-styling'], $active_theme->getLibraries()); // @see theme_test_system_info_alter() $this->state->set('theme_test.modify_info_files', TRUE); drupal_flush_all_caches(); $active_theme = $this->themeManager->getActiveTheme(); - $this->assertEqual(['classy/base', 'core/normalize', 'test_theme/global-styling', 'core/backbone'], $active_theme->getLibraries()); + $this->assertEqual(['classy/base', 'classy/messages', 'core/normalize', 'test_theme/global-styling', 'core/backbone'], $active_theme->getLibraries()); } }