improve content actions tests
pwolanin - January 1, 2008 - 23:06
| Project: | SimpleTest |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Description
Previously, cwgordon7 was writing a new test for a GHOP task: http://drupal.org/node/201139#comment-669788
When triggering all 6 actions, we got inexplicable errors - only the 1st of the 6 worked. So, we backed off and settled for 1 action.
After further IRC discussion between myself, cwgordon7, Rok Zlender, dmitrig01, & jvandyke- here's a patch that works by using POST rather than node_save() to create the content. Seems to avoid the previous problem (some stale static var?).
| Attachment | Size |
|---|---|
| all-6-actions.patch | 8.31 KB |

#1
note: patch is from the simpletest module directory. This one fixes the end of the file removing the closing PHP tag.
#2
This no longer works for HEAD so it needs to be rerolled. Also it appears that the method
setupis being used instead ofsetUp.#3
I believe this has been fixed in 7.x core.