You are here

protected function LocaleConfigSubscriberForeignTest::setUpLanguages in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberForeignTest::setUpLanguages()
  2. 9 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberForeignTest::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\Kernel

Code

protected function setUpLanguages() {
  parent::setUpLanguages();
  ConfigurableLanguage::createFromLangcode('hu')
    ->save();
}