diff --git a/core/modules/views/src/Tests/Handler/AreaTest.php b/core/modules/views/src/Tests/Handler/AreaTest.php index 23463cf..da24e60 100644 --- a/core/modules/views/src/Tests/Handler/AreaTest.php +++ b/core/modules/views/src/Tests/Handler/AreaTest.php @@ -108,9 +108,9 @@ public function testRenderArea() { // Check whether the strings exists in the output. $output = $view->preview(); $output = drupal_render($output); - $this->assertTrue(strpos($output, SafeMarkup::checkPlain($header_string)) !== FALSE); - $this->assertTrue(strpos($output, SafeMarkup::checkPlain($footer_string)) !== FALSE); - $this->assertTrue(strpos($output, SafeMarkup::checkPlain($empty_string)) !== FALSE); + $this->assertTrue(strpos($output, Xss::filterAdmin($header_string)) !== FALSE); + $this->assertTrue(strpos($output, Xss::filterAdmin($footer_string)) !== FALSE); + $this->assertTrue(strpos($output, Xss::filterAdmin($empty_string)) !== FALSE); } /**