The latest version of SimpleTest for D6 bombs with an error like

PHP Fatal error: Class 'DrupalTestCase' not found in /Applications/MAMP/htdocs/drupal6/sites/all/modules/content_profile/tests/content_profile.test on line 9

When loading /admin/build/testing. Yes, 2.x branch tests should be using "DrupalWebTestCase", but this didn't used to cause a problem. I think it's because of the missing regex filter in simpletest_get_all_tests(). Patch attached.

CommentFileSizeAuthor
simpletest.filter-old.patch742 byteslyricnz

Comments

boombatower’s picture

Title: New "Class 'DrupalTestCase' not found" with 6.x-2.6 » Ignore 1.x style tests
Status: Needs review » Fixed

So my hunch was correct. :)

It would be nice if this were not necessary, or just left as is....it is rather expensive to read every test file before including it.

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.