diff --git a/core/modules/dblog/lib/Drupal/dblog/Tests/Views/ViewsIntegrationTest.php b/core/modules/dblog/lib/Drupal/dblog/Tests/Views/ViewsIntegrationTest.php index 8911b86..d548480 100644 --- a/core/modules/dblog/lib/Drupal/dblog/Tests/Views/ViewsIntegrationTest.php +++ b/core/modules/dblog/lib/Drupal/dblog/Tests/Views/ViewsIntegrationTest.php @@ -7,6 +7,8 @@ namespace Drupal\dblog\Tests\Views; +use Drupal\Component\Utility\String; +use Drupal\Component\Utility\Xss; use Drupal\views\Tests\ViewTestData; use Drupal\views\Tests\ViewUnitTestBase; @@ -90,8 +92,8 @@ public function testIntegration() { $view->initStyle(); foreach ($entries as $index => $entry) { - $this->assertEqual($view->style_plugin->getField($index, 'message'), format_string($entry['message'], $entry['variables'])); - $this->assertEqual($view->style_plugin->getField($index, 'link'), filter_xss_admin($entry['link'])); + $this->assertEqual($view->style_plugin->getField($index, 'message'), String::format($entry['message'], $entry['variables'])); + $this->assertEqual($view->style_plugin->getField($index, 'link'), Xss::filterAdmin($entry['link'])); } // Disable replacing variables and check that the tokens aren't replaced.