diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php index 9a10255..8763132 100644 --- a/core/modules/menu_ui/src/Tests/MenuTest.php +++ b/core/modules/menu_ui/src/Tests/MenuTest.php @@ -266,7 +266,7 @@ function doMenuTests() { $this->clickLink(t('Add link')); $link_title = $this->randomString(); - $this->drupalPostForm(NULL, array('url' => '', 'title[0][value]' => $link_title), t('Save')); + $this->drupalPostForm(NULL, array('link[0][uri]' => '', 'title[0][value]' => $link_title), t('Save')); $this->assertUrl(Url::fromRoute('entity.menu.edit_form', ['menu' => $menu_name])); // Test the 'Edit' operation. $this->clickLink(t('Edit')); diff --git a/core/modules/system/src/Tests/Menu/BreadcrumbTest.php b/core/modules/system/src/Tests/Menu/BreadcrumbTest.php index ed4d35a..fff190b 100644 --- a/core/modules/system/src/Tests/Menu/BreadcrumbTest.php +++ b/core/modules/system/src/Tests/Menu/BreadcrumbTest.php @@ -187,7 +187,7 @@ function testBreadCrumbs() { $menu = 'tools'; $edit = array( 'title[0][value]' => 'Root', - 'url' => 'node', + 'link[0][uri]' => 'node', ); $this->drupalPostForm("admin/structure/menu/manage/$menu/add", $edit, t('Save')); $menu_links = entity_load_multiple_by_properties('menu_link_content', array('title' => 'Root')); @@ -240,7 +240,7 @@ function testBreadCrumbs() { $term = $data['term']; $edit = array( 'title[0][value]' => "$name link", - 'url' => "taxonomy/term/{$term->id()}", + 'link[0][uri]' => "taxonomy/term/{$term->id()}", 'menu_parent' => "$menu:{$parent_mlid}", 'enabled[value]' => 1, ); @@ -248,7 +248,7 @@ function testBreadCrumbs() { $menu_links = entity_load_multiple_by_properties('menu_link_content', array( 'title' => $edit['title[0][value]'], // @todo Use link.uri once https://www.drupal.org/node/2391217 is in. - 'link__uri' => 'taxonomy/term/' . $term->id(), + 'link__uri' => 'user-path:taxonomy/term/' . $term->id(), )); $tags[$name]['link'] = reset($menu_links); $parent_mlid = $tags[$name]['link']->getPluginId();