X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FForm%2FConfirmFormTest.php;h=ad5a74b691393b7839b0501d64e801e61f5a9380;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=c65546a481d2ec55ac8a876ea3c9e71ea134bd51;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php b/web/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php index c65546a48..ad5a74b69 100644 --- a/web/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php +++ b/web/core/modules/system/tests/src/Functional/Form/ConfirmFormTest.php @@ -2,7 +2,7 @@ namespace Drupal\Tests\system\Functional\Form; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -79,7 +79,7 @@ class ConfirmFormTest extends BrowserTestBase { */ public function assertCancelLinkUrl(Url $url, $message = '', $group = 'Other') { $links = $this->xpath('//a[@href=:url]', [':url' => $url->toString()]); - $message = ($message ? $message : SafeMarkup::format('Cancel link with URL %url found.', ['%url' => $url->toString()])); + $message = ($message ? $message : new FormattableMarkup('Cancel link with URL %url found.', ['%url' => $url->toString()])); return $this->assertTrue(isset($links[0]), $message, $group); }