You are here

protected function LocaleConfigSubscriberForeignTest::setUpLanguages in Drupal 8

Same name and namespace in other branches
  1. 9 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\Kernel

Code

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