diff --git a/core/modules/views/src/Tests/Handler/AreaTest.php b/core/modules/views/src/Tests/Handler/AreaTest.php index 8bcb173..23463cf 100644 --- a/core/modules/views/src/Tests/Handler/AreaTest.php +++ b/core/modules/views/src/Tests/Handler/AreaTest.php @@ -7,7 +7,7 @@ namespace Drupal\views\Tests\Handler; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Utility\Xss; use Drupal\views\Views; /** @@ -93,9 +93,9 @@ public function testRenderArea() { // Insert a random string to the test area plugin and see whether it is // rendered for both header, footer and empty text. - $header_string = $this->randomString(); - $footer_string = $this->randomString(); - $empty_string = $this->randomString(); + $header_string = '

' . $this->randomMachineName() . '

'; + $footer_string = '

' . $this->randomMachineName() . '

'; + $empty_string = '

' . $this->randomMachineName() . '

'; $view->header['test_example']->options['string'] = $header_string; $view->header['test_example']->options['empty'] = TRUE;