You are here

protected function ConfigTranslationDateFormatUiTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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);
}