Commit 67e96428 authored by Dries's avatar Dries

- Patch #576076 by yoroy, Gábor Hojtsy | Bojhan: remove the 'Add a main menu link'.

parent 2ac0eb58
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment