X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FForm%2FConfirmFormTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FForm%2FConfirmFormTest.php;h=ad5a74b691393b7839b0501d64e801e61f5a9380;hp=c65546a481d2ec55ac8a876ea3c9e71ea134bd51;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c 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); }