Closed (fixed)
Project:
Webform
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2008 at 21:07 UTC
Updated:
25 Jan 2009 at 22:20 UTC
Jump to comment: Most recent file
Simpletest tests are broken, getting the following error:
Fatal error: Class 'DrupalTestCase' not found in /.../modules/webform/tests/webform.test on line 4
Marking as critical because once you have the messaging module enable Simpletest crashes all the time and you cannot run tests at all.
Similar to #320334: tests broken
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | webform_test.patch | 371 bytes | mrfelton |
Comments
Comment #1
quicksketchWhich version of SimpleTest are you using? I believe the SimpleTests are against the Drupal-6--1 version, not really sure. The whole SimpleTest project was a horrible mess during the time I was writing the tests.
Comment #2
mariuss commentedLatest, 6.x-2.4.
Comment #3
jose reyero commentedAll the tests have been upgraded because we are using simpletest 6.x-2.4 now.
@mariuss
Have you really tried with that version?! I've just run them again and seem to be fine.
Comment #4
jose reyero commentedSorry, I've post in the wrong issue, please ignore my comment on #3 :-(
Comment #5
Stalski commentedI have the same problem using simpletest 6.x-2.4 and the latest dev version as well.
I get errors like:
Fatal error: Class 'DrupalTestCase' not found in D:\www\alfa\drupal6.6\sites\all\modules\webform\tests\webform.test on line 4
Fatal error: Class 'DrupalTestCase' not found in D:\www\alfa\drupal6.6\sites\all\modules\og\tests\og_post.test on line 4
and even from another module.
Comment #6
mrfelton commentedI have the same issue running with the latest reccommended version of simpletest (6.x-2.5) and webform 6.x-2.3:
Fatal error: Class 'DrupalTestCase' not found in /home/tom/public_html/drupal-6.x/sites/all/modules/webform/tests/webform.test on line 4
Comment #7
mrfelton commentedIsn't is supposed to read:
class WebformTestCase extends DrupalWebTestCase {
changing it to that fixed it for me at least
Comment #8
james.cartledge commentedThe patch above gets me past the "Class 'DrupalTestCase' not found" error, but then I bomb out when I try to run the tests:
An error occurred. /batch?id=7&op=do
Fatal error: Call to undefined method WebformPermissionsTestCase::drupalCreateRolePerm() in C:\Program Files\xampplite\htdocs\drupal\src\drupal\sites\all\modules\webform\tests\webform.test on line 58
This is with webform 6.x-2.3 and simpletest 6.x-2.5
Comment #9
quicksketchI've upgraded the entire Webform test suite to the 2.x version of SimpleTest. When 2.4 is out (later today hopefully), this problem will be resolved.
Comment #10
quicksketchUpdating the title to a better description.