You are here

protected function LocaleConfigSubscriberTest::setUpLocale in Zircon Profile 8.0

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

Sets up the locale storage strings to be in line with configuration.

2 calls to LocaleConfigSubscriberTest::setUpLocale()
LocaleConfigSubscriberForeignTest::setUpLocale in core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php
Sets up the locale storage strings to be in line with configuration.
LocaleConfigSubscriberTest::setUp in core/modules/locale/src/Tests/LocaleConfigSubscriberTest.php
Performs setup tasks before each individual test method is run.
1 method overrides LocaleConfigSubscriberTest::setUpLocale()
LocaleConfigSubscriberForeignTest::setUpLocale in core/modules/locale/src/Tests/LocaleConfigSubscriberForeignTest.php
Sets up the locale storage strings to be in line with configuration.

File

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

Class

LocaleConfigSubscriberTest
Tests that shipped configuration translations are updated correctly.

Namespace

Drupal\locale\Tests

Code

protected function setUpLocale() {

  // 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');
}