Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / src / Tests / SearchTestBase.php
index 1c157b6d0d51e3198ebf2c9d18ea997760ddbd42..5d5d0b4b72f50a64b516408f46a8b838aab3f99b 100644 (file)
@@ -3,7 +3,7 @@
 namespace Drupal\search\Tests;
 
 use Drupal\simpletest\WebTestBase;
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
 
 /**
  * Defines the common search test code.
@@ -85,7 +85,7 @@ abstract class SearchTestBase extends WebTestBase {
       // We have not found a form which contained all fields of $edit and
       // the submit button.
       foreach ($edit as $name => $value) {
-        $this->fail(SafeMarkup::format('Failed to set field @name to @value', ['@name' => $name, '@value' => $value]));
+        $this->fail(new FormattableMarkup('Failed to set field @name to @value', ['@name' => $name, '@value' => $value]));
       }
       $this->assertTrue($submit_matches, format_string('Found the @submit button', ['@submit' => $submit]));
       $this->fail(format_string('Found the requested form fields at @path', ['@path' => $path]));