protected function LocaleConfigSubscriberTest::setUpLanguages in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLanguages()
- 9 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLanguages()
Sets up languages needed for this test.
File
- core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberTest.php, line 91
Class
- LocaleConfigSubscriberTest
- Tests that shipped configuration translations are updated correctly.
Namespace
Drupal\Tests\locale\KernelCode
protected function setUpLanguages() {
ConfigurableLanguage::createFromLangcode('de')
->save();
}