diff --git a/core/modules/views/src/Tests/ViewExecutableTest.php b/core/modules/views/src/Tests/ViewExecutableTest.php index 3771c0d..26e381d 100644 --- a/core/modules/views/src/Tests/ViewExecutableTest.php +++ b/core/modules/views/src/Tests/ViewExecutableTest.php @@ -8,6 +8,7 @@ namespace Drupal\views\Tests; use Drupal\comment\Tests\CommentTestTrait; +use Drupal\Component\Utility\Xss; use Drupal\views\Entity\View; use Drupal\views\Views; use Drupal\views\ViewExecutable; @@ -326,7 +327,7 @@ public function testPropertyMethods() { // Test the title methods. $title = $this->randomString(); $view->setTitle($title); - $this->assertEqual($view->getTitle(), $title); + $this->assertEqual($view->getTitle(), Xss::filterAdmin($title)); } /**