function MenuTestCase::moveMenuLink

7.x menu.test MenuTestCase::moveMenuLink($item, $plid, $menu_name)

Change the parent of a menu link using the menu module UI.

1 call to MenuTestCase::moveMenuLink()
MenuTestCase::doMenuTests in drupal-7.x/modules/menu/menu.test
Test menu functionality using navigation menu.

File

drupal-7.x/modules/menu/menu.test, line 369
Tests for menu.module.

Class

MenuTestCase

Code

function moveMenuLink($item, $plid, $menu_name) {
  $mlid = $item['mlid'];

  $edit = array(
    'parent' => $menu_name . ':' . $plid,
  );
  $this->drupalPost("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
  $this->assertResponse(200);
}