protected function LocaleConfigSubscriberForeignTest::setUpLanguages in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberForeignTest::setUpLanguages()
Sets up languages needed for this test.
Overrides LocaleConfigSubscriberTest::setUpLanguages
File
- core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberForeignTest.php, line 31
Class
- LocaleConfigSubscriberForeignTest
- Tests default configuration handling with a foreign default language.
Namespace
Drupal\Tests\locale\KernelCode
protected function setUpLanguages() {
parent::setUpLanguages();
ConfigurableLanguage::createFromLangcode('hu')
->save();
}