// performed in the field edit page.
$this->
drupalGet('admin/config/regional/content-language'
);
$this->
assertSession()->
checkboxNotChecked('edit-settings-entity-test-mul-entity-test-mul-columns-field-test-et-ui-image-alt'
);
$this->
assertSession()->
checkboxNotChecked('edit-settings-entity-test-mul-entity-test-mul-columns-field-test-et-ui-image-title'
);
$edit =
[ 'settings[entity_test_mul][entity_test_mul][fields][field_test_et_ui_image]' => TRUE,
'settings[entity_test_mul][entity_test_mul][columns][field_test_et_ui_image][alt]' => TRUE,
'settings[entity_test_mul][entity_test_mul][columns][field_test_et_ui_image][title]' => TRUE,
];
$this->
drupalGet('admin/config/regional/content-language'
);
$this->
submitForm($edit, 'Save configuration'
);
$this->
assertSession()->
statusMessageNotExists('error'
);
$this->
assertSession()->
checkboxChecked('edit-settings-entity-test-mul-entity-test-mul-columns-field-test-et-ui-image-alt'
);
$this->
assertSession()->
checkboxChecked('edit-settings-entity-test-mul-entity-test-mul-columns-field-test-et-ui-image-title'
);
$this->
drupalLogin($this->translator
);
$default_langcode =
$this->langcodes
[0
];
$langcode =
$this->langcodes
[1
];
// Populate the test entity with some random initial values.
$values =
[ 'name' =>
$this->
randomMachineName(),
'user_id' =>
mt_rand(1, 128
),