string calculateVersion(
string
$operand1, string
$operand2, string
$operator
)
|
|
Adds/subtracts two version strings and returns the result.
This is a helper function for testIsCoreUpgradeAvailable. Examples: calculateVersion(1.2.0, 0.1.0, '+') = 1.3.0 calculateVersion(1.2.0, 1.1.0, '-') = 0.1.0
Parameters:
string |
$operand1: |
first operand |
string |
$operand2: |
second operand |
string |
$operator: |
operator, '+' or '-' |
API Tags:
void testComparePluginListEntries(
)
|
|
void testCreatePluginDirectory(
)
|
|
void testDownloadAndUnpack(
)
|
|
void testDownloadAndUnpackPackages(
)
|
|
void testDownloadAndUnpackPackagesFailed(
)
|
|
void testDownloadAndUnpackPackagesLockedFiles(
)
|
|
void testDownloadAndUnpackPackagesNoDescriptors(
)
|
|
void testGetDownloadFileList(
)
|
|
void testGetPluginUpgradeInfoForBasePackageUpgrade(
)
|
|
void testGetPluginUpgradeInfoInstalledVersionNewer(
)
|
|
void testGetRepositoriesAndClearCache(
)
|
|
void testGetRepositoryPluginList(
)
|
|
void testGetRepositoryPluginListThemeGroupLabel(
)
|
|
void testIsCoreUpgradeAvailable(
)
|
|
void testRemoveObsoleteFiles(
)
|
|
void testScanLockedPlugin(
)
|
|
void testScanPluginWithNoManifest(
)
|
|
void testScanPluginWithNoPoDir(
)
|
|
Test getAllUpgradeablePackages and getUpgradeInfo.
void _buildDescriptor(
$pluginData
)
|
|
Parameters:
void _getRepositoryPluginListTestCase(
$testCase
)
|
|
Parameters:
void _getUpgradeTestCase(
$testCase
)
|
|
Parameters:
void _prepareForGetPluginUpgradeInfo(
[
$isNewer = false]
)
|
|
Parameters:
void _setDownloadAndUnpackPackagesResponses(
$testData,
&$callback
)
|
|
Parameters:
void _setupRepositoryPluginListResponses(
&$utilities,
$case
)
|
|
Parameters:
void _setupUpdateUtilitiesResponses(
&$utilities,
$index,
$case, [
$pluginType = 'module']
)
|
|
Parameters:
|
&$utilities: |
|
|
$index: |
|
|
$case: |
|
|
$pluginType: |
|