You are here

protected function LocaleConfigSubscriberTest::setUpLanguages in Drupal 8

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

Sets up languages needed for this test.

1 call to LocaleConfigSubscriberTest::setUpLanguages()
LocaleConfigSubscriberForeignTest::setUpLanguages in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
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\Kernel

Code

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