protected function setUpLanguages() { ConfigurableLanguage::
createFromLangcode('de'
)->
save();
} /**
* Sets up the locale storage strings to be in line with configuration.
*/
protected function setUpLocale() { // Set up the locale database the same way we have in the config samples.
$this->
setUpNoTranslation('locale_test.no_translation', 'test', 'Test', 'de'
);
$this->
setUpTranslation('locale_test.translation', 'test', 'English test', 'German test', 'de'
);
$this->
setUpTranslation('locale_test.translation_multiple', 'test', 'English test', 'German test', 'de'
);
} /**
* Tests creating translations of shipped configuration.
*/
public function testCreateTranslation() { $config_name = 'locale_test.no_translation';
$this->
saveLanguageOverride($config_name, 'test', 'Test (German)', 'de'
);