/**
* Tests that the settings UI works as expected.
*/
public function testSettingsUI() { // Check for the content_translation_menu_links_discovered_alter() changes.
$this->
drupalGet('admin/config'
);
$this->
assertSession()->
linkExists('Content language and translation'
);
$this->
assertSession()->
pageTextContains('Configure language and translation support for content.'
);
// Test that the translation settings are ignored if the bundle is marked
// translatable but the entity type is not.
$edit =
['settings[comment][comment_article][translatable]' => TRUE
];
$this->
assertSettings('comment', 'comment_article', FALSE,
$edit);
// Test that the translation settings are ignored if only a field is marked
// as translatable and not the related entity type and bundle.
$edit =
['settings[comment][comment_article][fields][comment_body]' => TRUE
];
$this->
assertSettings('comment', 'comment_article', FALSE,
$edit);
// Test that the translation settings are not stored if an entity type and
// bundle are marked as translatable but no field is.
$edit =
[ 'entity_types[comment]' => TRUE,
'settings[comment][comment_article][translatable]' => TRUE,