- Patch #576076 by yoroy, Gábor Hojtsy | Bojhan: remove the 'Add a main menu link'.
parent
2ac0eb58a3
commit
67e9642816
|
@ -157,7 +157,9 @@ class MenuIncTestCase extends DrupalWebTestCase {
|
|||
* Test menu_get_names().
|
||||
*/
|
||||
function testMenuGetNames() {
|
||||
$this->assertEqual(menu_get_names(), array('admin_shortcuts', 'main-menu', 'management', 'navigation', 'original', 'user-menu'), t('Expected menu names were returned.'));
|
||||
// The main-menu is there but has no items by default, so not returned by
|
||||
// menu_get_names(). Therefore we cannot check for that.
|
||||
$this->assertEqual(menu_get_names(), array('admin_shortcuts', 'management', 'navigation', 'original', 'user-menu'), t('Expected menu names were returned.'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -205,10 +205,6 @@ function default_install() {
|
|||
// Update the menu router information.
|
||||
menu_rebuild();
|
||||
|
||||
// Save some default links.
|
||||
$link = array('link_path' => 'admin/structure/menu/manage/main-menu/add', 'link_title' => 'Add a main menu link', 'menu_name' => 'main-menu');
|
||||
menu_link_save($link);
|
||||
|
||||
// Enable the admin theme.
|
||||
db_update('system')
|
||||
->fields(array('status' => 1))
|
||||
|
|
Loading…
Reference in New Issue