X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fdblog%2Ftests%2Fsrc%2FKernel%2FViews%2FViewsIntegrationTest.php;fp=web%2Fcore%2Fmodules%2Fdblog%2Ftests%2Fsrc%2FKernel%2FViews%2FViewsIntegrationTest.php;h=daca0f64a5bcd3dd562dafc8e34ecdf4151c42fe;hp=67d693fb8bb39f30418889f722f24dce30958e93;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php b/web/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php index 67d693fb8..daca0f64a 100644 --- a/web/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php +++ b/web/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php @@ -2,7 +2,7 @@ namespace Drupal\Tests\dblog\Kernel\Views; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Component\Utility\Xss; use Drupal\Core\Logger\RfcLogLevel; use Drupal\Core\Url; @@ -62,7 +62,7 @@ class ViewsIntegrationTest extends ViewsKernelTestBase { if (!isset($entry['variables'])) { continue; } - $this->assertEqual($view->style_plugin->getField($index, 'message'), SafeMarkup::format($entry['message'], $entry['variables'])); + $this->assertEqual($view->style_plugin->getField($index, 'message'), new FormattableMarkup($entry['message'], $entry['variables'])); $link_field = $view->style_plugin->getField($index, 'link'); // The 3rd entry contains some unsafe markup that needs to get filtered. if ($index == 2) {