function LocaleUpdateCronTest::setUp

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

Overrides LocaleUpdateBase::setUp

File

core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php, line 27

Class

LocaleUpdateCronTest
Tests for using cron to update 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);
    $this->addLanguage('de');
}

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