protected function LocaleNonInteractiveDevInstallTest::getVersionStringToTest in Drupal 8
Same name and namespace in other branches
- 9 core/modules/locale/tests/src/Functional/LocaleNonInteractiveDevInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveDevInstallTest::getVersionStringToTest()
- 10 core/modules/locale/tests/src/Functional/LocaleNonInteractiveDevInstallTest.php \Drupal\Tests\locale\Functional\LocaleNonInteractiveDevInstallTest::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'.
Overrides LocaleNonInteractiveInstallTest::getVersionStringToTest
File
- core/
modules/ locale/ tests/ src/ Functional/ LocaleNonInteractiveDevInstallTest.php, line 20
Class
- LocaleNonInteractiveDevInstallTest
- Tests installing in a different language with a dev version string.
Namespace
Drupal\Tests\locale\FunctionalCode
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';
}