Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: boombatower commentedHere is a patch that uses
drupal_set_message
instead.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 CreditAttribution: Rok Žlender commentedPatch looks good.
Comment #3
boombatower CreditAttribution: boombatower commentedGot the "ok" from Zlender.
Committed.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.