Download & Extend

Poll functionality testing

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

AttachmentSizeStatusTest resultOperations
poll_module.test2.9 KBIgnored: Check issue status.NoneNone

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.

AttachmentSizeStatusTest resultOperations
poll_module.test2.59 KBIgnored: Check issue status.NoneNone

#2

Status:needs review» needs work

#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.

AttachmentSizeStatusTest resultOperations
poll_test.patch4.65 KBIgnored: Check issue status.NoneNone

#5

After http://drupal.org/node/204996#comment-674432 will get in, the create test will work.

AttachmentSizeStatusTest resultOperations
poll_test.patch4.87 KBIgnored: Check issue status.NoneNone

#6

Status:needs work» needs review

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?

AttachmentSizeStatusTest resultOperations
poll_test.patch5.62 KBIgnored: Check issue status.NoneNone

#7

Debug stuff removed.

AttachmentSizeStatusTest resultOperations
poll_test.patch5.42 KBIgnored: Check issue status.NoneNone

#8

Version:5.x-1.x-dev» 6.x-1.x-dev

#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.

AttachmentSizeStatusTest resultOperations
poll_module.test_.patch3.27 KBIgnored: Check issue status.NoneNone

#10

Status:needs review» fixed

Committed by accident in http://drupal.org/cvs?commit=94254 but it was good to go anyway.

#11

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.