function LocaleUpdateDevelopmentReleaseTest::setUp

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

Class

LocaleUpdateDevelopmentReleaseTest
Test for proper version fallback in case of a development release.

Namespace

Drupal\Tests\locale\Functional

Code

protected function setUp() {
    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->drupalPostForm('admin/config/regional/language/add', [
        'predefined_langcode' => 'hu',
    ], t('Add language'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.