Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
New tests:
- that the Recent Poll block outputs the block layout rather than page layout.
- that users can vote on polls via the block
- that the 'older polls' link in the recent poll block works.
- that node is output correctly, including 'Cancel your vote' button appearing
- that only users with appropriate permission can cancel their votes
- that the 'poll' page contains the correct data.
- that polls can be edited
- the opening / closing of polls - ensuring block doesn't appear when poll is closed, and neither do the 'Vote' / 'Cancel your vote' buttons, and that the poll status is updated correctly on 'poll' page.
Dependent on tickets #474302: Poll module fixes - due to recent api changes and #372650: Poll node is not displayed when poll block is displayed as well - these tests should fail without those changes.
Cheers,
Stella
Comment | File | Size | Author |
---|---|---|---|
#5 | poll_tests.patch | 9.51 KB | stella |
#1 | poll_tests.patch | 8.84 KB | stella |
Comments
Comment #1
stella CreditAttribution: stella commentedof course it helps if I attach the file :)
Comment #3
chx CreditAttribution: chx commentedasserting a themed something (like t(%) leading to theme('placeholder')) will break if the default theme is not Garland and it overrides theme(placeholder). So ... something better is needed. Other than that, nice test.
Comment #4
Dries CreditAttribution: Dries commentedTagging
Comment #5
stella CreditAttribution: stella commentedPatch re-roll that addresses the % assertion issue chx identified.
Comment #6
lilou CreditAttribution: lilou commentedComment #8
stella CreditAttribution: stella commentedTests are going to fail until #372650: Poll node is not displayed when poll block is displayed as well is committed
Comment #9
catchMore obvious status.
Comment #10
webchickLet's try that again, test bot.
Comment #12
webchickhey! :P
Comment #13
andypostTests passed
Comment #14
catchThese all look good.
Comment #15
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!