summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-05 16:16:41 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-05 16:16:41 +0000
commite758e30450ca661f2e99f2795441b9ebe7d3c0f1 (patch)
tree81325a1340db1a2c9a31ef9173a1f10e6cc7f9c7 /modules
parent691693304b0ccafda3c2002452a8b8b8afe729f3 (diff)
downloadbrdo-e758e30450ca661f2e99f2795441b9ebe7d3c0f1.tar.gz
brdo-e758e30450ca661f2e99f2795441b9ebe7d3c0f1.tar.bz2
#533584 by chx, dww, and Nick Lewis: Allow version-level dependency support to work with beta, rc, etc.
Diffstat (limited to 'modules')
-rw-r--r--modules/simpletest/tests/system_test.module2
-rw-r--r--modules/system/system.test14
2 files changed, 11 insertions, 5 deletions
diff --git a/modules/simpletest/tests/system_test.module b/modules/simpletest/tests/system_test.module
index cab3b9e57..3f0a1acef 100644
--- a/modules/simpletest/tests/system_test.module
+++ b/modules/simpletest/tests/system_test.module
@@ -180,7 +180,7 @@ function system_test_system_info_alter(&$info, $file) {
}
if ($file->name == 'common_test') {
$info['hidden'] = FALSE;
- $info['version'] = '7.x-2.4';
+ $info['version'] = '7.x-2.4-beta3';
}
}
}
diff --git a/modules/system/system.test b/modules/system/system.test
index 48526c735..738d3119b 100644
--- a/modules/system/system.test
+++ b/modules/system/system.test
@@ -208,7 +208,7 @@ class ModuleVersionTestCase extends ModuleTestCase {
'group' => 'Module',
);
}
-
+
function setup() {
parent::setUp('module_test');
}
@@ -218,7 +218,7 @@ class ModuleVersionTestCase extends ModuleTestCase {
*/
function testModuleVersions() {
$dependencies = array(
- // Alternating between being compatible and incompatible with 7.x-2.4.
+ // Alternating between being compatible and incompatible with 7.x-2.4-beta3.
// The first is always a compatible.
'common_test',
// Branch incompatibility.
@@ -236,11 +236,17 @@ class ModuleVersionTestCase extends ModuleTestCase {
// Nonsense, misses a dash. Incompatible with everything.
'common_test (=7.x2.x, >=2.4)',
// Core version is optional. Compatible.
- 'common_test (=7.x-2.x, >=2.4)',
+ 'common_test (=7.x-2.x, >=2.4-alpha2)',
// Test !=, explicitly incompatible.
- 'common_test (=2.x, !=2.4)',
+ 'common_test (=2.x, !=2.4-beta3)',
// Three operations. Compatible.
'common_test (=2.x, !=2.3, <2.5)',
+ // Testing extra version. Incompatible.
+ 'common_test (<=2.4-beta2)',
+ // Testing extra version. Compatible.
+ 'common_test (>2.4-beta2)',
+ // Testing extra version. Incompatible.
+ 'common_test (>2.4-rc0)',
);
variable_set('dependencies', $dependencies);
$n = count($dependencies);