diff --git a/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationUITest.php b/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationUITest.php index 956e6dd..21c8465 100644 --- a/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationUITest.php +++ b/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationUITest.php @@ -35,6 +35,7 @@ */ function testTranslationUI() { $this->assertBasicTranslation(); + $this->doTestTranslationOverview(); $this->assertOutdatedStatus(); $this->assertPublishedStatus(); $this->assertAuthoringInfo(); @@ -99,6 +100,21 @@ protected function assertBasicTranslation() { } /** + * Tests that the translation overview shows the correct values. + */ + protected function doTestTranslationOverview() { + $entity = entity_load($this->entityType, $this->entityId, TRUE); + $path = $this->controller->getBasePath($entity) . '/translations'; + $this->drupalGet($path); + + foreach ($this->langcodes as $langcode) { + if ($entity->hasTranslation($langcode)) { + $this->assertText($entity->getTranslation($langcode)->label(), format_string('Label correctly shown for %language translation', array('%language' => $langcode))); + } + } + } + + /** * Tests up-to-date status tracking. */ protected function assertOutdatedStatus() {