diff --git a/core/modules/block/src/Tests/BlockSystemBrandingTest.php b/core/modules/block/src/Tests/BlockSystemBrandingTest.php index 57ebc857f5bf..a78f67511548 100644 --- a/core/modules/block/src/Tests/BlockSystemBrandingTest.php +++ b/core/modules/block/src/Tests/BlockSystemBrandingTest.php @@ -53,6 +53,14 @@ class BlockSystemBrandingTest extends BlockTestBase { $this->assertTrue(!empty($site_slogan_element), 'The branding block slogan was found.'); $this->assertCacheTag('config:system.site'); + // Be sure the slogan is XSS-filtered. + $this->config('system.site') + ->set('slogan', '') + ->save(); + $this->drupalGet(''); + $site_slogan_element = $this->xpath($site_slogan_xpath); + $this->assertEqual($site_slogan_element[0], 'alert("Community carpentry");', 'The site slogan was XSS-filtered.'); + // Turn just the logo off. $this->config('block.block.site-branding') ->set('settings.use_site_logo', 0)