Commit cdfe0e66 authored by Marc Egger's avatar Marc Egger
Browse files

Refs #12588 assume Typo3 version grater than 8 in unittests

parent f82810ff
Pipeline #5408 failed with stages
in 2 minutes and 6 seconds
......@@ -209,21 +209,16 @@ class T3Handler {
return \TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version();
}
/**
* Note: Loads Typo3 if not running.
*
* @return bool
*/
public static function typo3VersionGreaterEqual10() {
return version_compare(self::getTypo3Version(), '10.0.0') >= 0;
}
/**
* Note: Loads Typo3 if not running.
*
* @return bool
*/
public static function typo3VersionGreaterEqual9() {
if (defined('PHPUNIT_QFQ')) {
// assume Typo3 version grater than 8 in unittests
return true;
}
return version_compare(self::getTypo3Version(), '9.0.0') >= 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment