protected function LocaleConfigSubscriberTest::setUpLanguages in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLanguages()
Sets up languages needed for this test.
1 method overrides LocaleConfigSubscriberTest::setUpLanguages()
- LocaleConfigSubscriberForeignTest::setUpLanguages in core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberForeignTest.php - 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();
}