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?).

AttachmentSize
all-6-actions.patch8.31 KB

#1

pwolanin - January 1, 2008 - 23:15

note: patch is from the simpletest module directory. This one fixes the end of the file removing the closing PHP tag.

AttachmentSize
all-6-actions-205414-1.patch8.28 KB

#2

boombatower - March 19, 2008 - 02:40
Version:6.x-1.x-dev» 7.x-1.x-dev
Status:patch (code needs review)» patch (code needs work)

This no longer works for HEAD so it needs to be rerolled. Also it appears that the method setup is being used instead of setUp.

#3

boombatower - August 6, 2008 - 06:09
Status:patch (code needs work)» duplicate

I believe this has been fixed in 7.x core.

 
 

Drupal is a registered trademark of Dries Buytaert.