summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2008-06-26 21:07:59 (GMT)
committerDries Buytaert2008-06-26 21:07:59 (GMT)
commit66ddfda7a211d0c8dbba8d622fe08918a0fbfe15 (patch)
treecbb2a2a74694fc63e22c2de7a1f0fd26e254edce
parent2877c1027a05ab516439f4917cfc25c84b2bef10 (diff)
- Patch #274994 by R.Muilwijk, boombatower: bring back the includes-tests.
-rw-r--r--includes/tests/bootstrap.test (renamed from includes/bootstrap.test)0
-rw-r--r--includes/tests/common.test (renamed from includes/common.test)0
-rw-r--r--includes/tests/registry.test (renamed from includes/registry.test)0
-rw-r--r--includes/tests/xmlrpc.test (renamed from includes/xmlrpc.test)0
-rw-r--r--modules/simpletest/simpletest.module5
5 files changed, 5 insertions, 0 deletions
diff --git a/includes/bootstrap.test b/includes/tests/bootstrap.test
index beb94ed..beb94ed 100644
--- a/includes/bootstrap.test
+++ b/includes/tests/bootstrap.test
diff --git a/includes/common.test b/includes/tests/common.test
index d3f9076..d3f9076 100644
--- a/includes/common.test
+++ b/includes/tests/common.test
diff --git a/includes/registry.test b/includes/tests/registry.test
index 93fea40..93fea40 100644
--- a/includes/registry.test
+++ b/includes/tests/registry.test
diff --git a/includes/xmlrpc.test b/includes/tests/xmlrpc.test
index 72a230e..72a230e 100644
--- a/includes/xmlrpc.test
+++ b/includes/tests/xmlrpc.test
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module
index ee072c2..4d04149 100644
--- a/modules/simpletest/simpletest.module
+++ b/modules/simpletest/simpletest.module
@@ -427,6 +427,10 @@ function simpletest_get_all_tests() {
}
}
+ foreach (file_scan_directory('includes/tests', '\.test$') as $file) {
+ $files[] = $file->filename;
+ }
+
$existing_classes = get_declared_classes();
foreach ($files as $file) {
include_once($file);
@@ -459,6 +463,7 @@ function simpletest_categorize_tests($tests) {
$info = $instance->getInfo();
$groups[$info['group']][$test] = $instance;
}
+ uksort($groups, 'strnatcasecmp');
return $groups;
}