'settings[entity_test_mul][entity_test_mul][fields][user_id]' => FALSE,
];
$this->
assertSettings('entity_test_mul', 'entity_test_mul', TRUE,
$edit);
$field_override = BaseFieldOverride::
loadByName('entity_test_mul', 'entity_test_mul', 'name'
);
$this->
assertTrue($field_override->
isTranslatable(), 'Base fields can be overridden with a base field bundle override entity.'
);
$definitions =
$entity_field_manager->
getFieldDefinitions('entity_test_mul', 'entity_test_mul'
);
$this->
assertTrue($definitions['name'
]->
isTranslatable());
$this->
assertFalse($definitions['user_id'
]->
isTranslatable());
// Test that language settings are correctly stored.
$language_configuration = ContentLanguageSettings::
loadByEntityTypeBundle('comment', 'comment_article'
);
$this->
assertEquals('current_interface',
$language_configuration->
getDefaultLangcode(), 'The default language for article comments is set to the interface text language selected for page.'
);
$this->
assertTrue($language_configuration->
isLanguageAlterable(), 'The language selector for article comments is shown.'
);
// Verify language widget appears on comment type form.
$this->
drupalGet('admin/structure/comment/manage/comment_article'
);
$this->
assertSession()->
fieldExists('language_configuration[content_translation]'
);
$this->
assertSession()->
checkboxChecked('edit-language-configuration-content-translation'
);
// Verify that translation may be enabled for the article content type.
$edit =
[ 'language_configuration[content_translation]' => TRUE,
];