You are here

protected function LocaleUpdateCronTest::setUp in Drupal 8

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