diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentLanguageTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentLanguageTest.php index 27b529a..76dec17 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentLanguageTest.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentLanguageTest.php @@ -71,7 +71,7 @@ function setUp() { // Create comment field on article. comment_add_default_comment_field('node', 'article'); - + // Make comment body translatable. $field = field_info_field('comment_body'); $field['translatable'] = TRUE; diff --git a/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationSettingsTest.php b/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationSettingsTest.php index db9932b..0eb8d1e 100644 --- a/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationSettingsTest.php +++ b/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationSettingsTest.php @@ -89,6 +89,8 @@ function testSettingsUI() { 'settings[comment][comment][fields][comment_body]' => TRUE, ); $this->assertSettings('comment', 'comment', TRUE, $edit); + // Clear static field cache. + drupal_static_reset('_field_info_field_cache'); $field = field_info_field('comment_body'); $this->assertTrue($field['translatable'], 'Comment body is translatable.');