diff core/modules/search/src/Tests/SearchTestBase.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children af1871eacc83
line wrap: on
line diff
--- a/core/modules/search/src/Tests/SearchTestBase.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/modules/search/src/Tests/SearchTestBase.php	Thu Feb 28 13:21:36 2019 +0000
@@ -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 @@
       // 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]));