diff --git a/core/modules/color/test/src/Functional/ColorTest.php b/core/modules/color/test/src/Functional/ColorTest.php index a67f9de..dc44566 100644 --- a/core/modules/color/test/src/Functional/ColorTest.php +++ b/core/modules/color/test/src/Functional/ColorTest.php @@ -116,7 +116,7 @@ function _testColor($theme, $test_values) { $this->drupalGet(''); $stylesheets = $this->config('color.theme.' . $theme)->get('stylesheets'); foreach ($stylesheets as $stylesheet) { - $this->assertPattern('|' . file_url_transform_relative(file_create_url($stylesheet)) . '|'); + $this->assertPattern('|' . file_url_transform_relative(file_create_url($stylesheet)) . '|', 'Make sure the color stylesheet is included in the content. (' . $theme . ')'); $stylesheet_content = join("\n", file($stylesheet)); $this->assertTrue(strpos($stylesheet_content, 'color: #123456') !== FALSE, 'Make sure the color we changed is in the color stylesheet. (' . $theme . ')'); } @@ -202,8 +202,8 @@ function testOverrideAndResetScheme() { $this->drupalPlaceBlock('system_branding_block', ['region' => 'header']); $this->drupalGet(''); - $this->assertNoRaw('files/color/bartik-'); - $this->assertRaw('bartik/logo.svg'); + $this->assertNoRaw('files/color/bartik-', 'Make sure the color logo is not being used.'); + $this->assertRaw('bartik/logo.svg', 'Make sure the original bartik logo exists.'); // Log in and set the color scheme to 'slate'. $this->drupalLogin($this->bigUser); @@ -213,8 +213,8 @@ function testOverrideAndResetScheme() { // Visit the homepage and ensure color changes. $this->drupalLogout(); $this->drupalGet(''); - $this->assertRaw('files/color/bartik-'); - $this->assertNoRaw('bartik/logo.svg'); + $this->assertRaw('files/color/bartik-', 'Make sure the color logo is being used.'); + $this->assertNoRaw('bartik/logo.svg', 'Make sure the original bartik logo does not exist.'); // Log in and set the color scheme back to default (delete config). $this->drupalLogin($this->bigUser); @@ -224,8 +224,8 @@ function testOverrideAndResetScheme() { // Log out and ensure there is no color and we have the original logo. $this->drupalLogout(); $this->drupalGet(''); - $this->assertNoRaw('files/color/bartik-'); - $this->assertRaw('bartik/logo.svg'); + $this->assertNoRaw('files/color/bartik-', 'Make sure the color logo is not being used.'); + $this->assertRaw('bartik/logo.svg', 'Make sure the original bartik logo exists.'); } }