diff --git a/core/modules/image/src/Tests/ImageThemeFunctionTest.php b/core/modules/image/src/Tests/ImageThemeFunctionTest.php index 111f5ce..d8c2312 100644 --- a/core/modules/image/src/Tests/ImageThemeFunctionTest.php +++ b/core/modules/image/src/Tests/ImageThemeFunctionTest.php @@ -153,9 +153,10 @@ function testImageStyleTheme() { } /** - * Tests that alt in image's attributes is shown correctly. + * Tests image alt attribute functionality. */ function testImageAltFunctionality() { + // Test using alt directly with alt attribute. $image_with_alt_working = array( '#theme' => 'image', '#uri' => '/core/themes/bartik/logo.png', @@ -170,6 +171,7 @@ function testImageAltFunctionality() { $elements = $this->xpath('//img[contains(@class, class) and contains(@alt, :alt)]', array(":class" => "image-with-regular-alt", ":alt" => "Regular alt")); $this->assertEqual(count($elements), 1, 'Regular alt displays correctly'); + // Test using alt attribute inside attributes. $image_with_alt_attribute_not_working = array( '#theme' => 'image', '#uri' => '/core/themes/bartik/logo.png',