Posted by chx on December 31, 2007 at 1:37am
2 followers
| Project: | SimpleTest |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
This is what I have so far. Works but there are two artefacts a) more choices do not work because of the way simpletest gets the page before posting it b) for some reason when testing poll votes, seems the system gets so happy over the relative success that it runs testPollCreate again. Fixing either is beyond me, so I hope Rok will take this over. Note this a Drupal-friendly test so some core bugs have been harmed while writing this :D
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| poll_module.test | 2.9 KB | Ignored: Check issue status. | None | None |
Comments
#1
I fixed a . Will take a look at b later.
There is no need to delete poll at the end as tearDown cleans up.
#2
#3
I thought tearDown cleans up users and roles but not nodes.
#4
Your solution is simply ugly. Now I know how, I have a much better way: reusable and of course properly documented.
#5
After http://drupal.org/node/204996#comment-674432 will get in, the create test will work.
#6
Though B) remains now this is rather complete and I see nodes deleted created by the users to be cleaned up. Great. But then why are there two node_delete calls and with wrong arguments?
#7
Debug stuff removed.
#8
#9
I made some changes to simpletest http://drupal.org/node/205892 which would help this test. First apply patch in http://drupal.org/node/205892 and then run this one.
#10
Committed by accident in http://drupal.org/cvs?commit=94254 but it was good to go anyway.
#11
Automatically closed -- issue fixed for two weeks with no activity.