$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,
];
// Make sure the checkbox is available and not checked by default.
$this->
drupalGet('admin/structure/types/manage/article'
);
$this->
assertSession()->
fieldExists('language_configuration[content_translation]'
);
$this->
assertSession()->
checkboxNotChecked('edit-language-configuration-content-translation'
);
$this->
drupalGet('admin/structure/types/manage/article'
);
$this->
submitForm($edit, 'Save content type'
);
$this->
drupalGet('admin/structure/types/manage/article'
);
$this->
assertSession()->
checkboxChecked('edit-language-configuration-content-translation'
);
// Test that the title field of nodes is available in the settings form.
$edit =
[ 'entity_types[node]' => TRUE,
'settings[node][article][settings][language][langcode]' => 'current_interface',
'settings[node][article][settings][language][language_alterable]' => TRUE,
'settings[node][article][translatable]' => TRUE,