diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php index 3aec2b4..44adeb2 100644 --- a/core/modules/menu_ui/src/Tests/MenuTest.php +++ b/core/modules/menu_ui/src/Tests/MenuTest.php @@ -262,22 +262,22 @@ function doMenuTests() { $menu_name = $this->menu->id(); // Test the 'Add link' local action. - $this->drupalGet('admin/structure/menu/manage/' . $menu_name); + $this->drupalGet(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name])->toString()); $this->clickLink(t('Add link')); $link_title = $this->randomString(); $this->drupalPostForm(NULL, array('url' => '', 'title[0][value]' => $link_title), t('Save')); - $this->assertUrl('admin/structure/menu/manage/' . $menu_name); + $this->assertUrl(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name])->toString()); // Test the 'Edit' operation. $this->clickLink(t('Edit')); $this->assertFieldByName('title[0][value]', $link_title); $link_title = $this->randomString(); $this->drupalPostForm(NULL, array('title[0][value]' => $link_title), t('Save')); - $this->assertUrl('admin/structure/menu/manage/' . $menu_name); + $this->assertUrl(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name])->toString()); // Test the 'Delete' operation. $this->clickLink(t('Delete')); $this->assertRaw(t('Are you sure you want to delete the custom menu link %item?', array('%item' => $link_title))); $this->drupalPostForm(NULL, array(), t('Confirm')); - $this->assertUrl('admin/structure/menu/manage/' . $menu_name); + $this->assertUrl(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name])->toString()); // Add nodes to use as links for menu links. $node1 = $this->drupalCreateNode(array('type' => 'article'));