diff --git a/core/modules/menu_link_content/src/Tests/MenuLinkContentUITest.php b/core/modules/menu_link_content/src/Tests/MenuLinkContentUITest.php index a281583..811f883 100644 --- a/core/modules/menu_link_content/src/Tests/MenuLinkContentUITest.php +++ b/core/modules/menu_link_content/src/Tests/MenuLinkContentUITest.php @@ -8,6 +8,7 @@ namespace Drupal\menu_link_content\Tests; use Drupal\content_translation\Tests\ContentTranslationUITest; +use Drupal\menu_link_content\Entity\MenuLinkContent; /** * Tests the menu link content UI. @@ -63,6 +64,19 @@ protected function createEntity($values, $langcode, $bundle_name = NULL) { } /** + * Ensure that a translate link can be found on the menu edit form. + */ + public function testTranslationLinkOnMenuEditForm() { + $this->drupalGet('admin/structure/menu/manage/tools'); + $this->assertNoLink(t('Translate')); + + $menu_link_content = MenuLinkContent::create(['menu_name' => 'tools', 'route_name' => 'entity.menu.collection']); + $menu_link_content->save(); + $this->drupalGet('admin/structure/menu/manage/tools'); + $this->assertLink(t('Translate')); + } + + /** * Tests that translation page inherits admin status of edit page. */ function testTranslationLinkTheme() {