function LocaleUpdateInterfaceTest::setUp

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

Overrides LocaleUpdateBase::setUp

File

core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php, line 29

Class

LocaleUpdateInterfaceTest
Tests for the user interface of project interface translations.

Namespace

Drupal\Tests\locale\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $admin_user = $this->drupalCreateUser([
        'administer modules',
        'administer site configuration',
        'administer languages',
        'access administration pages',
        'translate interface',
    ]);
    $this->drupalLogin($admin_user);
}

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