? simpletest ? simpletest_1.0.1beta2.tar.gz Index: drupal_unit_tests.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/drupal_unit_tests.php,v retrieving revision 1.5.2.4 diff -u -u -r1.5.2.4 drupal_unit_tests.php --- drupal_unit_tests.php 3 Jan 2008 10:16:35 -0000 1.5.2.4 +++ drupal_unit_tests.php 9 Jan 2008 21:36:11 -0000 @@ -35,7 +35,17 @@ /* Tricky part to avoid double inclusion */ if (!$classes) { - $files = module_invoke_all('simpletest'); + + $files = array(); + foreach (module_list() as $module) { + $module_path = drupal_get_path('module', $module); + if (file_exists($module_path . '/tests/')) { + $dir = $module_path . '/tests'; + $tests = file_scan_directory($dir, '\.test$'); + $files = array_merge($files, $tests); + } + } + $files = array_keys($files); $existing_classes = get_declared_classes(); foreach ($files as $file) { Index: simpletest.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/simpletest.module,v retrieving revision 1.22.2.7 diff -u -u -r1.22.2.7 simpletest.module --- simpletest.module 3 Jan 2008 10:16:35 -0000 1.22.2.7 +++ simpletest.module 9 Jan 2008 21:36:12 -0000 @@ -228,15 +228,6 @@ } /** - * Implementation of hook_simpletest(). - */ -function simpletest_simpletest() { - $dir = drupal_get_path('module', 'simpletest'). '/tests'; - $tests = file_scan_directory($dir, '\.test$'); - return array_keys($tests); -} - -/** * This function makes sure no unnecessary copies of the DrupalUnitTests object are instantiated * @param array $classes list of all classes the test should concern or * DEFAULT NULL