diff --git a/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationSettingsTest.php b/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationSettingsTest.php index a8e1a0c..49b1579 100644 --- a/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationSettingsTest.php +++ b/core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationSettingsTest.php @@ -21,7 +21,7 @@ class ContentTranslationSettingsTest extends WebTestBase { * * @var array */ - public static $modules = array('language', 'content_translation', 'node', 'comment', 'field_ui'); + public static $modules = array('language', 'content_translation', 'node', 'comment', 'field_ui', 'entity_test'); public static function getInfo() { return array( @@ -98,6 +98,13 @@ function testSettingsUI() { $field = field_info_field('comment', 'comment_body'); $this->assertTrue($field->isTranslatable(), 'Comment body is translatable.'); + // Test that translation can be enabled for base fields. + $edit = array( + 'settings[entity_test_mul][entity_test_mul][translatable]' => TRUE, + 'settings[entity_test_mul][entity_test_mul][fields][name]' => TRUE, + ); + $this->assertSettings('entity_test_mul', 'entity_test_mul', TRUE, $edit); + // Test that language settings are correctly stored. $language_configuration = language_get_default_configuration('comment', 'node__comment_article'); $this->assertEqual($language_configuration['langcode'], 'current_interface', 'The default language for article comments is set to the current interface language.');