1 menu.test | MenuTestCase::disableMenuLink($item) |
Disable a menu link.
Parameters
$item: Menu link.
File
- core/
modules/ menu/ tests/ menu.test, line 526 - Tests for menu.module.
Class
Code
function disableMenuLink($item) {
$mlid = $item['mlid'];
$edit['enabled'] = FALSE;
$this->backdropPost("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
// Unlike most other modules, there is no confirmation message displayed.
// Verify in the database.
$this->assertMenuLink($mlid, array('hidden' => 1));
}