function LocaleUpdateDevelopmentReleaseTest::setUp
Same name in other branches
- 9 core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::setUp()
- 8.9.x core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::setUp()
- 11.x core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ locale/ tests/ src/ Functional/ LocaleUpdateDevelopmentReleaseTest.php, line 29
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.