You are here

protected function LocaleConfigSubscriberForeignTest::setUpLanguages in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest::setUpLanguages()

Sets up languages needed for this test.

Overrides LocaleConfigSubscriberTest::setUpLanguages

File

core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php, line 33
Contains \Drupal\locale\Tests\LocaleConfigSubscriberForeignTest.

Class

LocaleConfigSubscriberForeignTest
Tests default configuration handling with a foreign default language.

Namespace

Drupal\locale\Tests

Code

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