commit 4eae4de64eb1bf15b306a0f2bd4ae8dfb0c74c72 Author: Dom Date: Fri Oct 30 00:08:07 2015 +0100 my patch diff --git a/core/tests/Drupal/KernelTests/Core/Common/DrupalSetMessageLoadsCssTest.php b/core/tests/Drupal/KernelTests/Core/Common/DrupalSetMessageLoadsCssTest.php index 5250978..f3f9c90 100644 --- a/core/tests/Drupal/KernelTests/Core/Common/DrupalSetMessageLoadsCssTest.php +++ b/core/tests/Drupal/KernelTests/Core/Common/DrupalSetMessageLoadsCssTest.php @@ -10,19 +10,13 @@ use Drupal\simpletest\WebTestBase; /** - * Tests CSS classes on comments. + * Tests that message assets are loaded only when needed. * * @group standard */ class DrupalSetMessageLoadsCssTest extends WebTestBase { /** - * The profile to install as a basis for testing. - * - * @var string - */ - - /** * Check that a page does not load message assets when unrequired. */ public function testDrupalSetMessage() { @@ -30,7 +24,7 @@ public function testDrupalSetMessage() { // Get the frontpage. $this->drupalGet(""); // Check that message assets are loaded. - $this->assertRaw("core/themes/classy/css/components/messages.css", "Message CSS assets should be loaded.") + $this->assertRaw("core/themes/classy/css/components/messages.css", "Message CSS assets should be loaded."); // Display a message. drupal_set_message(t('A message: @foo', ['@foo' => 'bar'])); @@ -41,6 +35,6 @@ public function testDrupalSetMessage() { $this->assertRaw("A message:", "The Drupal message should be displayed."); // Check that message assets are not loaded. - $this->assertNoRaw("message.css", "Message CSS assets should not be loaded.") + $this->assertNoRaw("core/themes/classy/css/components/messages.css", "Message CSS assets should not be loaded."); } }