function LocaleNonInteractiveDevInstallTest::getVersionStringToTest

Same name in other branches
  1. 9 core/modules/locale/tests/src/Functional/LocaleNonInteractiveDevInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveDevInstallTest::getVersionStringToTest()
  2. 8.9.x core/modules/locale/tests/src/Functional/LocaleNonInteractiveDevInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveDevInstallTest::getVersionStringToTest()
  3. 11.x core/modules/locale/tests/src/Functional/LocaleNonInteractiveDevInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveDevInstallTest::getVersionStringToTest()

Overrides LocaleNonInteractiveInstallTest::getVersionStringToTest

File

core/modules/locale/tests/src/Functional/LocaleNonInteractiveDevInstallTest.php, line 22

Class

LocaleNonInteractiveDevInstallTest
Tests installing in a different language with a dev version string.

Namespace

Drupal\Tests\locale\Functional

Code

protected function getVersionStringToTest() {
    include_once $this->root . '/core/includes/install.core.inc';
    $version = _install_get_version_info(\Drupal::VERSION);
    return $version['major'] . '.' . $version['minor'] . '.x';
}

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