* Set up comments without a subject. Check that the subject field is not there.
* Set up comments to have a subject. Preview, submit, reply, edit, delete a comment. Check the reply is gone too.
* Set Preview comment to required. check that it is indeed required.
* Check both locations of the comment submission form work: the form and submissions works.
* Check all three options of anonymous commenting: leave comments with or without contact information as appropriate
* Check admin/content/comment and admin/content/comment/approval for correctness: publish / unpublish / delete a comment. Post a comment with a user that has no "post comments without approval" only "post comments" and check the comment is not visible for other users. Approve it and see it is.
Comment | File | Size | Author |
---|---|---|---|
#6 | comment_module.test_.txt | 14.04 KB | boombatower |
#4 | comment_module.test_.txt | 13.46 KB | boombatower |
#1 | comment_module.test_.txt | 11.86 KB | boombatower |
Comments
Comment #1
boombatower CreditAttribution: boombatower commentedI believe this beast is working.
Comment #2
kourge CreditAttribution: kourge commentedComment #3
webchick- // $Id: should be // $Id$
- Your test needs a description more descriptive than "..." :)
- No need to override tearDown if you're not actually performing tearDown tasks.
- Instead of set_comment_settings business, I'd just do a plain $this->variableSet(); for those form values. This has the advantage of cleaning up after your test so you don't permanently alter the state of the database.
- Let's get some Doxygen comments on those functions, hmm? ;)
- I wonder if these should be broken up a little into different test* functions, rather than all chunked under testComment. That's a /long/ function. Is there a nice place to split up the functionality? (ex: testEdit, testAnonymous, testDelete, test...)
Sorry, I'm too tired to do a more thorough functionality review, atm. Will leave to chx/Zlender.
Comment #4
boombatower CreditAttribution: boombatower commentedSummary:
Thanks for reviewing it.
Comment #5
webchickMarking back for review.
Comment #6
boombatower CreditAttribution: boombatower commentedI believe I successfully split up tasks.
Comment #7
Rok Žlender CreditAttribution: Rok Žlender commentedTests looks great. I went over the code and couldn't find any problems. Tomorrow I'll try running the test and will commit afterwards. This is amazing test thanks boombatower.
Comment #8
Rok Žlender CreditAttribution: Rok Žlender commentedCommitted to D6 branch now testing for head.
Comment #9
Rok Žlender CreditAttribution: Rok Žlender commentedCommitted to HEAD.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.