X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmenu_link_content%2Ftests%2Fsrc%2FFunctional%2FLinksTest.php;fp=web%2Fcore%2Fmodules%2Fmenu_link_content%2Ftests%2Fsrc%2FFunctional%2FLinksTest.php;h=4d5bf9aa073f066c35db088a34a3a1122e270857;hp=7cce477b5a0d43058cd2df37aa11b1adff9865d0;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/menu_link_content/tests/src/Functional/LinksTest.php b/web/core/modules/menu_link_content/tests/src/Functional/LinksTest.php index 7cce477b5..4d5bf9aa0 100644 --- a/web/core/modules/menu_link_content/tests/src/Functional/LinksTest.php +++ b/web/core/modules/menu_link_content/tests/src/Functional/LinksTest.php @@ -2,7 +2,7 @@ namespace Drupal\Tests\menu_link_content\Functional; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Menu\MenuTreeParameters; use Drupal\menu_link_content\Entity\MenuLinkContent; use Drupal\system\Entity\Menu; @@ -115,7 +115,7 @@ class LinksTest extends BrowserTestBase { $menu_link_plugin = $this->menuLinkManager->createInstance($links[$id]); $expected_parent = isset($links[$parent]) ? $links[$parent] : ''; - $this->assertEqual($menu_link_plugin->getParent(), $expected_parent, SafeMarkup::format('Menu link %id has parent of %parent, expected %expected_parent.', ['%id' => $id, '%parent' => $menu_link_plugin->getParent(), '%expected_parent' => $expected_parent])); + $this->assertEqual($menu_link_plugin->getParent(), $expected_parent, new FormattableMarkup('Menu link %id has parent of %parent, expected %expected_parent.', ['%id' => $id, '%parent' => $menu_link_plugin->getParent(), '%expected_parent' => $expected_parent])); } }