protected function setUpLanguages() { parent::
setUpLanguages();
ConfigurableLanguage::
createFromLangcode('hu'
)->
save();
} /**
* {@inheritdoc}
*/
protected function setUpLocale() { parent::
setUpLocale();
$this->
setUpTranslation('locale_test.translation', 'test', 'English test', 'Hungarian test', 'hu', TRUE
);
} /**
* Tests that the language of default configuration was updated.
*/
public function testDefaultConfigLanguage() { $this->
assertEquals('hu',
$this->configFactory->
getEditable('locale_test.no_translation'
)->
get('langcode'
));
$this->
assertEquals('hu',
$this->configFactory->
getEditable('locale_test.translation'
)->
get('langcode'
));
$this->
assertEquals('Hungarian test',
$this->configFactory->
getEditable('locale_test.translation'
)->
get('test'
));
}