1 menu.test MenuTestCase::enableMenuLink($item)

Enable a menu link.

Parameters

$item: Menu link.

File

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

Class

MenuTestCase

Code

function enableMenuLink($item) {
  $mlid = $item['mlid'];
  $edit['enabled'] = TRUE;
  $this->backdropPost("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));

  // Verify in the database.
  $this->assertMenuLink($mlid, array('hidden' => 0));
}