Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / tests / src / Functional / SearchIntegrationTest.php
index f4daac774eb2ed63eb3db2d5e1450577001705ba..fbbc96582b72efa6fa4d0758f3b210c70d26784b 100644 (file)
@@ -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);
   }