function ConfigTranslationDateFormatUiTest::setUp
Same name in other branches
- 8.9.x core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationDateFormatUiTest::setUp()
- 10 core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationDateFormatUiTest::setUp()
- 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 29
Class
- ConfigTranslationDateFormatUiTest
- Tests the content translation behaviors on date formats.
Namespace
Drupal\Tests\config_translation\FunctionalCode
protected function setUp() : void {
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.