You are here

function i18nMenuTestCase::createMenuLink in Internationalization 7

Helper function to create a menu link.

4 calls to i18nMenuTestCase::createMenuLink()
i18nMenuTestCase::testMenuTranslateLocalize in i18n_menu/i18n_menu.test
i18nMenuTestCase::testMenuTranslateLocalizeSwitchToNonTranslatable in i18n_menu/i18n_menu.test
Tests if on a switch from translatable to non translatable the translation sets and links are cleaned up.
i18nMenuTestCase::testMenuTranslationSets in i18n_menu/i18n_menu.test
Tests if the translation set management works.
i18nMenuTestCase::testNodeMenuItems in i18n_menu/i18n_menu.test
Test menu items for nodes.

File

i18n_menu/i18n_menu.test, line 267
Test case for multilingual menus.

Class

i18nMenuTestCase
@file Test case for multilingual menus.

Code

function createMenuLink($item = array()) {
  $item += array(
    'link_title' => $this
      ->randomName(),
    'link_path' => '<front>',
    'customized' => TRUE,
  );
  return menu_link_load(menu_link_save($item));
}