diff --git a/core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php b/core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php index 9e26dd0..d9130e0 100644 --- a/core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php +++ b/core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php @@ -367,7 +367,7 @@ public function testGenerateWithHtml() { // Test that safe HTML is output inside the anchor tag unescaped. $url = new Url('test_route_5', array()); $url->setUrlGenerator($this->urlGenerator); - $result = $this->linkGenerator->generate(SafeMarkup::set('HTML output'), $url); + $result = $this->linkGenerator->generate(SafeMarkup::checkAdminXss('HTML output'), $url); $this->assertLink(array( 'attributes' => array('href' => '/test-route-5'), 'child' => array(