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

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

File

core/modules/menu/tests/menu.test, line 429
Tests for menu.module.

Class

MenuTestCase

Code

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

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