Closed (won't fix)
Project:
SimpleTest
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2008 at 03:36 UTC
Updated:
18 Mar 2008 at 00:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
webchickThis is a good start, and I've managed to fix some more of them by changing the Submit button to Save, but the more I look at this test, the more it's clear that this test has been neglected for some time, and it plain needs a re-write using the more modern functions available.
Working on it...
Comment #2
webchickOk. Until http://drupal.org/node/212304 is fixed and we can use drupalCreateNode() the way it's intended, I'm going to CHEAT GLORIOUSLY and just remove the two lines that are checking for the existence of the body.
Why?
a) We should have one central place for the checking of these "did the node create correctly" stuff. drupalCreateNode() is the obvious place. All other tests that need to create nodes should call that function.
b) We should then remove those checks from every other test, as they're just wasted code. The job of those tests should be only to verify things specific to that module (ex. Did the image create ok?)
So, with that, I give you a patch that clears up the remaining errors. :)
Comment #3
boombatower commentedThe image test no longer exists in SimpleTest since the image module isn't part of core. The tests and any issues should be placed in the image module queue.