diff --git a/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php b/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php index 36a0d20..d264e47 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php @@ -71,9 +71,7 @@ protected function setUp() { $this->bundle = $this->randomMachineName(); $this->contentType = $this->drupalCreateContentType(array('type' => $this->bundle)); - // Add a field to the content type. This will be made translatable by the - // test through the UI. This is important because it tests that caches are - // cleared as expected when doing this. + // Add a field to the content type. The field is not yet translatable. entity_create('field_storage_config', array( 'field_name' => 'field_test_text', 'entity_type' => 'node', @@ -112,7 +110,8 @@ public function testContentTranslationContextualLinks() { $this->drupalCreateNode(array('type' => $this->bundle, 'title' => $title, 'langcode' => 'en')); $node = $this->drupalGetNodeByTitle($title); - // Set up the node type and field to be translatable through the UI. + // Use a UI form sumission to make the node type and field translatable. + // This tests that caches are properly invalidated. $this->drupalLogin($this->rootUser); $edit = array( 'entity_types[node]' => TRUE,