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',
- // Setup a link with a tag which is filtered by
+ // Creates a link with a unsafe content which we 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(),
- 'link' => \Drupal::l(SafeMarkup::format(''), new Url('')),
+ 'link' => \Drupal::l(SafeMarkup::set(''), new Url('')),
),
);
$logger_factory = $this->container->get('logger.factory');