protected function LocaleUpdateDevelopmentReleaseTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::setUp()
- 9 core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::setUp()
File
- core/
modules/ locale/ tests/ src/ Functional/ LocaleUpdateDevelopmentReleaseTest.php, line 21
Class
- LocaleUpdateDevelopmentReleaseTest
- Test for proper version fallback in case of a development release.
Namespace
Drupal\Tests\locale\FunctionalCode
protected function setUp() : void {
parent::setUp();
\Drupal::moduleHandler()
->loadInclude('locale', 'inc', 'locale.compare');
$admin_user = $this
->drupalCreateUser([
'administer modules',
'administer languages',
'access administration pages',
'translate interface',
]);
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/config/regional/language/add');
$this
->submitForm([
'predefined_langcode' => 'hu',
], 'Add language');
}