function ConfigTranslationUiThemeTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/config_translation/tests/src/Functional/ConfigTranslationUiThemeTest.php, line 47

Class

ConfigTranslationUiThemeTest
Verifies theme configuration translation settings.

Namespace

Drupal\Tests\config_translation\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $admin_permissions = [
        'administer themes',
        'administer languages',
        'administer site configuration',
        'translate configuration',
    ];
    // Create and log in user.
    $this->adminUser = $this->drupalCreateUser($admin_permissions);
    // Add languages.
    foreach ($this->langcodes as $langcode) {
        ConfigurableLanguage::createFromLangcode($langcode)->save();
    }
}

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