X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FSearchIntegrationTest.php;h=fbbc96582b72efa6fa4d0758f3b210c70d26784b;hb=refs%2Fheads%2Fd864;hp=f4daac774eb2ed63eb3db2d5e1450577001705ba;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/views/tests/src/Functional/SearchIntegrationTest.php b/web/core/modules/views/tests/src/Functional/SearchIntegrationTest.php index f4daac774..fbbc96582 100644 --- a/web/core/modules/views/tests/src/Functional/SearchIntegrationTest.php +++ b/web/core/modules/views/tests/src/Functional/SearchIntegrationTest.php @@ -2,7 +2,7 @@ namespace Drupal\Tests\views\Functional; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Tests\Traits\Core\CronRunTrait; /** @@ -145,7 +145,7 @@ class SearchIntegrationTest extends ViewTestBase { */ protected function assertOneLink($label) { $links = $this->xpath('//a[normalize-space(text())=:label]', [':label' => $label]); - $message = SafeMarkup::format('Link with label %label found once.', ['%label' => $label]); + $message = new FormattableMarkup('Link with label %label found once.', ['%label' => $label]); return $this->assert(isset($links[0]) && !isset($links[1]), $message); }