Skip to content

Instantly share code, notes, and snippets.

@Berdir
Created January 22, 2013 23:39
Show Gist options
  • Save Berdir/4599942 to your computer and use it in GitHub Desktop.
Save Berdir/4599942 to your computer and use it in GitHub Desktop.
diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module
index d7adb65..3996210 100644
--- a/core/modules/simpletest/simpletest.module
+++ b/core/modules/simpletest/simpletest.module
@@ -323,12 +323,10 @@ function simpletest_test_get_all() {
else {
// Select all PSR-0 classes in the Tests namespace of all modules.
$classes = array();
- $module_data = system_rebuild_module_data();
- $all_data = $module_data + system_rebuild_theme_data();
- $all_data += drupal_system_listing('/\.profile$/', 'profiles', 'name');
+ $all_data = array('system' => (object)array('uri' => 'core/modules/system/system.module'));
foreach ($all_data as $name => $data) {
// Build directory in which the test files would reside.
- $tests_dir = DRUPAL_ROOT . '/' . dirname($data->uri) . '/lib/Drupal/' . $name . '/Tests';
+ $tests_dir = DRUPAL_ROOT . '/' . dirname($data->uri) . '/lib/Drupal/' . $name . '/Tests/Upgrade';
// Scan it for test files if it exists.
if (is_dir($tests_dir)) {
$files = file_scan_directory($tests_dir, '/.*\.php/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment