function LocaleNonInteractiveInstallTest::getVersionStringToTest
Same name in other branches
- 9 core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveInstallTest::getVersionStringToTest()
- 8.9.x core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveInstallTest::getVersionStringToTest()
- 10 core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveInstallTest::getVersionStringToTest()
Gets the version string to use in the translation file.
Return value
string The version string to test, for example, '8.0.0' or '8.6.x'.
1 call to LocaleNonInteractiveInstallTest::getVersionStringToTest()
- LocaleNonInteractiveInstallTest::installParameters in core/
modules/ locale/ tests/ src/ Functional/ LocaleNonInteractiveInstallTest.php
1 method overrides LocaleNonInteractiveInstallTest::getVersionStringToTest()
- LocaleNonInteractiveDevInstallTest::getVersionStringToTest in core/
modules/ locale/ tests/ src/ Functional/ LocaleNonInteractiveDevInstallTest.php
File
-
core/
modules/ locale/ tests/ src/ Functional/ LocaleNonInteractiveInstallTest.php, line 35
Class
- LocaleNonInteractiveInstallTest
- Tests installing in a different language with a non-dev version string.
Namespace
Drupal\Tests\locale\FunctionalCode
protected function getVersionStringToTest() : string {
include_once $this->root . '/core/includes/install.core.inc';
$version = _install_get_version_info(\Drupal::VERSION);
return $version['major'] . '.0.0';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.