protected function LocaleUpdateCronTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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\FunctionalCode
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');
}