$config_name = 'locale_test.translation';
$this->configFactory->
getEditable($config_name)->
delete();
// Deleting active configuration should not change the locale translation.
$this->
assertTranslation($config_name, 'Hungarian test', 'hu', FALSE
);
} /**
* Tests deleting community translations of shipped configuration.
*/
public function testLocaleDeleteActiveTranslation() { $config_name = 'locale_test.translation';
$this->
deleteLocaleTranslationData($config_name, 'test', 'English test', 'hu'
);
// Deleting the locale translation should not change active config.
$this->
assertEquals('Hungarian test',
$this->configFactory->
getEditable($config_name)->
get('test'
));
} /**
* Tests that adding English creates a translation override.
*/
public function testEnglish() { $config_name = 'locale_test.translation';
ConfigurableLanguage::
createFromLangcode('en'
)->
save();
// Adding a language on the UI would normally call updateConfigTranslations.