function LocaleConfigSubscriberTest::setUpLanguages

Same name in other branches
  1. 9 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLanguages()
  2. 8.9.x core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLanguages()
  3. 10 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLanguages()

Sets up languages needed for this test.

2 calls to LocaleConfigSubscriberTest::setUpLanguages()
LocaleConfigSubscriberForeignTest::setUpLanguages in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberForeignTest.php
Sets up languages needed for this test.
LocaleConfigSubscriberTest::setUp in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
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 93

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\Tests\locale\Kernel

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.