X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FSearchIntegrationTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FSearchIntegrationTest.php;h=fbbc96582b72efa6fa4d0758f3b210c70d26784b;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=f4daac774eb2ed63eb3db2d5e1450577001705ba;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;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); }