summaryrefslogtreecommitdiff
path: root/modules/menu/menu.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/menu/menu.test')
-rw-r--r--modules/menu/menu.test42
1 files changed, 21 insertions, 21 deletions
diff --git a/modules/menu/menu.test b/modules/menu/menu.test
index f3f44b0e4..6f2f2d32e 100644
--- a/modules/menu/menu.test
+++ b/modules/menu/menu.test
@@ -97,7 +97,7 @@ class MenuTestCase extends DrupalWebTestCase {
// Add custom menu.
// Try adding a menu using a menu_name that is too long.
- $this->drupalGet('admin/build/menu/add');
+ $this->drupalGet('admin/structure/menu/add');
$menu_name = substr(md5($this->randomName(16)), 0, MENU_MAX_MENU_NAME_LENGTH_UI + 1);
$title = $this->randomName(16);
$edit = array(
@@ -105,7 +105,7 @@ class MenuTestCase extends DrupalWebTestCase {
'description' => '',
'title' => $title,
);
- $this->drupalPost('admin/build/menu/add', $edit, t('Save'));
+ $this->drupalPost('admin/structure/menu/add', $edit, t('Save'));
// Verify that using a menu_name that is too long results in a validation message.
$this->assertText(format_plural(MENU_MAX_MENU_NAME_LENGTH_UI, "The menu name can't be longer than 1 character.", "The menu name can't be longer than @count characters."), t('Validation failed when menu name is too long.'));
@@ -113,20 +113,20 @@ class MenuTestCase extends DrupalWebTestCase {
// Change the menu_name so it no longer exceeds the maximum length.
$menu_name = substr(md5($this->randomName(16)), 0, MENU_MAX_MENU_NAME_LENGTH_UI);
$edit['menu_name'] = $menu_name;
- $this->drupalPost('admin/build/menu/add', $edit, t('Save'));
+ $this->drupalPost('admin/structure/menu/add', $edit, t('Save'));
// Verify that no validation error is given for menu_name length.
$this->assertNoText(format_plural(MENU_MAX_MENU_NAME_LENGTH_UI, "The menu name can't be longer than 1 character.", "The menu name can't be longer than @count characters."), t('Validation failed when menu name is too long.'));
// Unlike most other modules, there is no confirmation message displayed.
- $this->drupalGet('admin/build/menu');
+ $this->drupalGet('admin/structure/menu');
$this->assertText($title, 'Menu created');
// Enable the custom menu block.
$menu_name = 'menu-' . $menu_name; // Drupal prepends the name with 'menu-'.
$edit = array();
$edit['menu_' . $menu_name . '[region]'] = 'left';
- $this->drupalPost('admin/build/block', $edit, t('Save blocks'));
+ $this->drupalPost('admin/structure/block', $edit, t('Save blocks'));
$this->assertResponse(200);
$this->assertText(t('The block settings have been updated.'), t('Custom menu block was enabled'));
@@ -143,7 +143,7 @@ class MenuTestCase extends DrupalWebTestCase {
$title = $this->menu['title'];
// Delete custom menu.
- $this->drupalPost("admin/build/menu-customize/$menu_name/delete", array(), t('Delete'));
+ $this->drupalPost("admin/structure/menu-customize/$menu_name/delete", array(), t('Delete'));
$this->assertResponse(200);
$this->assertRaw(t('The custom menu %title has been deleted.', array('%title' => $title)), t('Custom menu was deleted'));
$this->assertFalse(menu_load($menu_name), 'Custom menu was deleted');
@@ -181,7 +181,7 @@ class MenuTestCase extends DrupalWebTestCase {
// Note in the UI the 'mlid:x[hidden]' form element maps to enabled, or
// NOT hidden.
$edit['mlid:' . $item1['mlid'] . '[hidden]'] = TRUE;
- $this->drupalPost('admin/build/menu-customize/' . $item1['menu_name'], $edit, t('Save configuration'));
+ $this->drupalPost('admin/structure/menu-customize/' . $item1['menu_name'], $edit, t('Save configuration'));
// Verify in the database.
$hidden = db_query("SELECT hidden FROM {menu_links} WHERE mlid = :mlid", array(':mlid' => $item1['mlid']))->fetchField();
@@ -202,7 +202,7 @@ class MenuTestCase extends DrupalWebTestCase {
*/
function addMenuLink($plid = 0, $link = '<front>', $menu_name = 'navigation') {
// View add menu link page.
- $this->drupalGet("admin/build/menu-customize/$menu_name/add");
+ $this->drupalGet("admin/structure/menu-customize/$menu_name/add");
$this->assertResponse(200);
$title = '!link_' . $this->randomName(16);
@@ -217,7 +217,7 @@ class MenuTestCase extends DrupalWebTestCase {
);
// Add menu link.
- $this->drupalPost("admin/build/menu-customize/$menu_name/add", $edit, t('Save'));
+ $this->drupalPost("admin/structure/menu-customize/$menu_name/add", $edit, t('Save'));
$this->assertResponse(200);
// Unlike most other modules, there is no confirmation message displayed.
@@ -254,7 +254,7 @@ class MenuTestCase extends DrupalWebTestCase {
'menu[link_path]' => $link_path,
'menu[link_title]' => 'title',
);
- $this->drupalPost("admin/build/menu-customize/$menu_name/add", $edit, t('Save'));
+ $this->drupalPost("admin/structure/menu-customize/$menu_name/add", $edit, t('Save'));
$this->assertRaw(t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $link_path)), 'Menu link was not created');
}
}
@@ -308,12 +308,12 @@ class MenuTestCase extends DrupalWebTestCase {
// Edit menu link.
$edit = array();
$edit['menu[link_title]'] = $title;
- $this->drupalPost("admin/build/menu/item/$mlid/edit", $edit, t('Save'));
+ $this->drupalPost("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
$this->assertResponse(200);
// Unlike most other modules, there is no confirmation message displayed.
// Verify menu link.
- $this->drupalGet('admin/build/menu-customize/' . $item['menu_name']);
+ $this->drupalGet('admin/structure/menu-customize/' . $item['menu_name']);
$this->assertText($title, 'Menu link was edited');
}
@@ -328,7 +328,7 @@ class MenuTestCase extends DrupalWebTestCase {
$title = $item['link_title'];
// Reset menu link.
- $this->drupalPost("admin/build/menu/item/$mlid/reset", array(), t('Reset'));
+ $this->drupalPost("admin/structure/menu/item/$mlid/reset", array(), t('Reset'));
$this->assertResponse(200);
$this->assertRaw(t('The menu link was reset to its default settings.'), t('Menu link was reset'));
@@ -351,7 +351,7 @@ class MenuTestCase extends DrupalWebTestCase {
$title = $item['link_title'];
// Delete menu link.
- $this->drupalPost("admin/build/menu/item/$mlid/delete", array(), t('Confirm'));
+ $this->drupalPost("admin/structure/menu/item/$mlid/delete", array(), t('Confirm'));
$this->assertResponse(200);
$this->assertRaw(t('The menu link %title has been deleted.', array('%title' => $title)), t('Menu link was deleted'));
@@ -388,7 +388,7 @@ class MenuTestCase extends DrupalWebTestCase {
function disableMenuLink($item) {
$mlid = $item['mlid'];
$edit['menu[enabled]'] = FALSE;
- $this->drupalPost("admin/build/menu/item/$mlid/edit", $edit, t('Save'));
+ $this->drupalPost("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
// Unlike most other modules, there is no confirmation message displayed.
// Verify in the database.
@@ -405,7 +405,7 @@ class MenuTestCase extends DrupalWebTestCase {
function enableMenuLink($item) {
$mlid = $item['mlid'];
$edit['menu[enabled]'] = TRUE;
- $this->drupalPost("admin/build/menu/item/$mlid/edit", $edit, t('Save'));
+ $this->drupalPost("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
// Verify in the database.
$hidden = db_query("SELECT hidden FROM {menu_links} WHERE mlid = :mlid", array(':mlid' => $mlid))->fetchField();
@@ -440,14 +440,14 @@ class MenuTestCase extends DrupalWebTestCase {
}
// View menu build overview node.
- $this->drupalGet('admin/build/menu');
+ $this->drupalGet('admin/structure/menu');
$this->assertResponse($response);
if ($response == 200) {
$this->assertText(t('Menus'), t('Menu build overview node was displayed'));
}
// View navigation menu customization node.
- $this->drupalGet('admin/build/menu-customize/navigation');
+ $this->drupalGet('admin/structure/menu-customize/navigation');
$this->assertResponse($response);
if ($response == 200) {
$this->assertText(t('Navigation'), t('Navigation menu node was displayed'));
@@ -455,21 +455,21 @@ class MenuTestCase extends DrupalWebTestCase {
// View menu edit node.
$item = $this->getStandardMenuLink();
- $this->drupalGet('admin/build/menu/item/' . $item['mlid'] . '/edit');
+ $this->drupalGet('admin/structure/menu/item/' . $item['mlid'] . '/edit');
$this->assertResponse($response);
if ($response == 200) {
$this->assertText(t('Edit menu item'), t('Menu edit node was displayed'));
}
// View menu settings node.
- $this->drupalGet('admin/build/menu/settings');
+ $this->drupalGet('admin/structure/menu/settings');
$this->assertResponse($response);
if ($response == 200) {
$this->assertText(t('Menus'), t('Menu settings node was displayed'));
}
// View add menu node.
- $this->drupalGet('admin/build/menu/add');
+ $this->drupalGet('admin/structure/menu/add');
$this->assertResponse($response);
if ($response == 200) {
$this->assertText(t('Menus'), t('Add menu node was displayed'));