$edit =
[ 'translation[config_names][config_translation_test.content][content][value]' => '<p><strong>Hello World</strong> - FR</p>',
'translation[config_names][config_translation_test.content][animals][0]' => 'kitten - FR',
'translation[config_names][config_translation_test.content][animals][1]' => 'llama - FR',
'translation[config_names][config_translation_test.content][animals][2]' => 'elephant - FR',
];
$this->
drupalGet('admin/config/media/file-system/translate/fr/add'
);
$this->
submitForm($edit, 'Save translation'
);
$this->container->
get('language.config_factory_override'
) ->
setLanguage(new Language(['id' => 'fr'
]));
$expected =
[ 'kitten - FR',
'llama - FR',
'elephant - FR',
];
$actual =
$config_factory ->
get('config_translation_test.content'
) ->
get('animals'
);
$this->
assertEquals($expected,
$actual);
}