diff -u b/core/modules/dblog/src/Tests/Views/ViewsIntegrationTest.php b/core/modules/dblog/src/Tests/Views/ViewsIntegrationTest.php
--- b/core/modules/dblog/src/Tests/Views/ViewsIntegrationTest.php
+++ b/core/modules/dblog/src/Tests/Views/ViewsIntegrationTest.php
@@ -72,12 +72,13 @@
// Setup a watchdog entry with two tokens.
$entries[] = array(
'message' => '@token1 !token2',
- // Creates a link containing unsafe content which we deliberately, wrongly
- // mark as safe with SafeMarkup::set() to verify that it is later filtered
- // and made safe by \Drupal\Component\Utility\Xss::filterAdmin().
'variables' => array(
'@token1' => $this->randomMachineName(),
'!token2' => $this->randomMachineName(),
+ // Creates a link containing unsafe content which we deliberately,
+ // wrongly mark as safe with \Drupal\Component\Utility\SafeMarkup::set()
+ // to verify that it is later filtered and made safe by
+ // \Drupal\Component\Utility\Xss::filterAdmin().
'link' => \Drupal::l(SafeMarkup::set(''), new Url('')),
),
);