protected function UpgradeStatusTestBase::getDrupalCoreMajorVersion in Upgrade Status 8.3
Returns current core's major version.
Return value
int Version converted to int.
3 calls to UpgradeStatusTestBase::getDrupalCoreMajorVersion()
- UpgradeStatusAnalyzeTest::testAnalyzer in tests/
src/ Functional/ UpgradeStatusAnalyzeTest.php - UpgradeStatusUiTest::testRoleChecking in tests/
src/ Functional/ UpgradeStatusUiTest.php - Test the user interface for role checking.
- UpgradeStatusUiTest::testUiAfterScan in tests/
src/ Functional/ UpgradeStatusUiTest.php - Test the user interface after running a scan.
File
- tests/
src/ Functional/ UpgradeStatusTestBase.php, line 76
Class
- UpgradeStatusTestBase
- Defines shared functions used by some of the functional tests.
Namespace
Drupal\Tests\upgrade_status\FunctionalCode
protected function getDrupalCoreMajorVersion() : int {
return (int) \Drupal::VERSION;
}