You are here

protected function LocaleConfigSubscriberTest::setUpLanguages in Zircon Profile 8

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

Sets up languages needed for this test.

1 call to LocaleConfigSubscriberTest::setUpLanguages()
LocaleConfigSubscriberForeignTest::setUpLanguages in core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php
Sets up languages needed for this test.
1 method overrides LocaleConfigSubscriberTest::setUpLanguages()
LocaleConfigSubscriberForeignTest::setUpLanguages in core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php
Sets up languages needed for this test.

File

core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php, line 98
Contains \Drupal\locale\Tests\LocaleConfigSubscriberTest.

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\locale\Tests

Code

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