You are here

function EntityTranslationMenuTranslationTestCase::configureMenu in Entity Translation 7

Configure the "Main Menu" for multilingual menu items ("Translate & Localize").

1 call to EntityTranslationMenuTranslationTestCase::configureMenu()
EntityTranslationMenuTranslationTestCase::setUp in entity_translation_i18n_menu/entity_translation_i18n_menu.test
Sets up a Drupal site for running functional and integration tests.

File

entity_translation_i18n_menu/entity_translation_i18n_menu.test, line 39
Tests for Entity translation module.

Class

EntityTranslationMenuTranslationTestCase
Tests for the translation of menu items on entity forms.

Code

function configureMenu() {
  $edit = array();
  $edit['i18n_mode'] = I18N_MODE_MULTIPLE;

  // Translate & Localize.
  $this
    ->drupalPost('admin/structure/menu/manage/main-menu/edit', $edit, t('Save'));
  $this
    ->assertRaw(t('Your configuration has been saved.'), t('Menu settings have been saved.'));
}