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

merge-requests/26/head
Dries Buytaert 2009-10-01 13:22:43 +00:00
parent 2ac0eb58a3
commit 67e9642816
2 changed files with 3 additions and 5 deletions

View File

@ -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.'));
}
/**

View File

@ -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))