diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-25 05:20:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-25 05:20:16 +0000 |
commit | e2184e25ac140d3b44709b7b070c1c4889122d45 (patch) | |
tree | b498a820eb874a70481ae408994be6d0cb1c10ea /modules/simpletest/simpletest.module | |
parent | a36d0d49c11329af1d040979d9c3e3ed5a92e1ca (diff) | |
download | brdo-e2184e25ac140d3b44709b7b070c1c4889122d45.tar.gz brdo-e2184e25ac140d3b44709b7b070c1c4889122d45.tar.bz2 |
- Patch #464714 by chx, DamZ: speed up the tests by bringing unit tests backt to live. Unit tests bootstrap faster and have the potential to speed up testing. We'll need help converting tests where possible.
Diffstat (limited to 'modules/simpletest/simpletest.module')
-rw-r--r-- | modules/simpletest/simpletest.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module index df0725f76..58c01b6f2 100644 --- a/modules/simpletest/simpletest.module +++ b/modules/simpletest/simpletest.module @@ -238,7 +238,7 @@ function simpletest_get_all_tests() { } $classes = array_values(array_diff(get_declared_classes(), $existing_classes)); foreach ($classes as $key => $class) { - if (!method_exists($class, 'getInfo')) { + if (!is_subclass_of($class, 'DrupalTestCase') || !method_exists($class, 'getInfo')) { unset($classes[$key]); } } |