diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuLanguageTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuLanguageTest.php index 435c2e4..1d40ec4 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuLanguageTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuLanguageTest.php @@ -194,4 +194,28 @@ function testMenuLanguageRemovedEnglish() { $this->assertEqual($menu->langcode, 'en'); } + /** + * Test whether the menu configuration language dropdown values are translated + */ + function testMenuLanguageConfigurationTranslated() { + // Create a test menu to test language settings. + // Machine name has to be lowercase. + $menu_name = Unicode::strtolower($this->randomName(16)); + $edit = array( + 'id' => $menu_name, + 'description' => '', + 'label' => $this->randomString(), + 'langcode' => 'en', + ); + $this->drupalPost('admin/structure/menu/add', $edit, t('Save')); + + + $this->drupalGet("admin/structure/menu/manage/$menu_name"); + debug($this->drupalGetContent()); + #https://api.drupal.org/api/drupal/core%21modules%21action%21lib%21Drupal%21action%21Tests%21BulkFormTest.php/function/BulkFormTest%3A%3AtestBulkForm/8 + #$options = $this->xpath('//select[@id=:id]/option', array(':id' => 'edit-action')); + #$this->assertEqual(count($options), 2); + #$this->assertOption('edit-action', 'node_make_sticky_action'); + #$this->assertOption('edit-action', 'node_make_unsticky_action'); + } }