The 'BadGroupTest' class isn't loaded there, so Drupal dies with the following message:
"Fatal error: Call to undefined method BadGroupTest::getTestInstances() in /var/www/drupal/sites/all/modules/simpletest/simpletest.module on line 177"
In 'drupal_unit_tests.php' line 50 there seems to be some 'old' code (or copied from simpletest itself?) to display a message when no tests are defined. $this->addTestCase(new BadGroupTest($test_file, 'No new test cases'));
I'd reckon that this should be changed to a 'drupal_set_message()' or something...
-H-
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | simpletest_no_tests_found.patch | 676 bytes | boombatower |
Comments
Comment #1
boombatower commentedHere is a patch that uses
drupal_set_messageinstead.Rok Žlender would know if there are other reasons for keeping it the way it is. If so it still needs to be fixed.
Comment #2
Rok Žlender commentedPatch looks good.
Comment #3
boombatower commentedGot the "ok" from Zlender.
Committed.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.