function ConfigTranslationDateFormatUiTest::setUp

Same name in other branches
  1. 9 core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationDateFormatUiTest::setUp()
  2. 10 core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationDateFormatUiTest::setUp()
  3. 11.x core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationDateFormatUiTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php, line 26

Class

ConfigTranslationDateFormatUiTest
Tests the content translation behaviors on date formats.

Namespace

Drupal\Tests\config_translation\Functional

Code

protected function setUp() {
    parent::setUp();
    // Enable additional languages.
    $langcodes = [
        'de',
        'es',
    ];
    foreach ($langcodes as $langcode) {
        ConfigurableLanguage::createFromLangcode($langcode)->save();
    }
    $user = $this->drupalCreateUser([
        'administer site configuration',
        'translate configuration',
    ]);
    $this->drupalLogin($user);
}

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