conflict between DrupalTestCase and DrupalWebTestCase
| Project: | SimpleTest |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | boombatower |
| Status: | closed |
In trying to run both contrib and core tests with 6.x I found a very odd and aggravating bug. If you run tests from (for example) CCK or admin_menu that use the 7.x API, followed by the poll module test (possibly others, but this is a clear example), then lots of the poll module tests fail AND at the end of the test Drupal acts as though simpletest and poll modules are disabled! One has to visit the modules page to get them to show up again!
This appears to be due to a stale list of enabled modules. In the poll tests, poll module was already enabled, so the calls to drupalModuleEnable() should have cause a message in the test report that the module was already enabled. This did no happen.

#1
could that be related to http://drupal.org/node/275052 ?
#2
Maybe related, but the fix that seems to work is to work is to reset the module cache in tearDown() - patch coming...
#3
I'm having some trouble reproducing this on a more stock install - it's very odd and frustrating. Attached is the patch that fixes this when I see it.
note, this patch could potentially be combined with http://drupal.org/node/274486
#4
Try new code I have removed support for 7.x style tests in 1.x branch and have created a 2.x branch with complete backport of 7.x module.
#274542: Back-port the batch API patch & related imporvements
#5
Does the 2.x branch also support old-style tests? Browsing the files in CVS suggests not.
Also, the drupal_web_test_case.php file is still in the 1.x branch, but your comment above suggests it was removed?
#6
Was intended to be removed, I'll check it out when I get home.
The 2.x branch does not support the old format.
Rewrote module page and created this documentation explaining it: http://drupal.org/node/291740.
#7
Removed.
#8
Marking as fixed unless found otherwise.
#9
#10
Automatically closed -- issue fixed for two weeks with no activity.