You are here

protected function LocaleUpdateDevelopmentReleaseTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 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();
  module_load_include('compare.inc', 'locale');
  $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');
}