You are here

protected function LocaleUpdateDevelopmentReleaseTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::setUp()
  2. 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\Functional

Code

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');
}