function LocaleConfigSubscriberTest::setUpLocale
Same name in other branches
- 9 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLocale()
- 8.9.x core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLocale()
- 10 core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberTest::setUpLocale()
Sets up the locale storage strings to be in line with configuration.
1 call to LocaleConfigSubscriberTest::setUpLocale()
- LocaleConfigSubscriberTest::setUp in core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberTest.php
1 method overrides LocaleConfigSubscriberTest::setUpLocale()
- LocaleConfigSubscriberForeignTest::setUpLocale in core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberForeignTest.php - Sets up the locale storage strings to be in line with configuration.
File
-
core/
modules/ locale/ tests/ src/ Kernel/ LocaleConfigSubscriberTest.php, line 100
Class
- LocaleConfigSubscriberTest
- Tests that shipped configuration translations are updated correctly.
Namespace
Drupal\Tests\locale\KernelCode
protected function setUpLocale() : void {
// Set up the locale database the same way we have in the config samples.
$this->setUpNoTranslation('locale_test.no_translation', 'test', 'Test', 'de');
$this->setUpTranslation('locale_test.translation', 'test', 'English test', 'German test', 'de');
$this->setUpTranslation('locale_test.translation_multiple', 'test', 'English test', 'German test', 'de');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.