56 passes, 47 fails and 2 exceptions.
Found the requested form at node/add/poll [Other] Fail
Failed to set field choice[0][chtext] to choice 1 [Other] Fail
Failed to set field choice[1][chtext] to choice 2 [Other] Fail
Found the requested form at [Other] Fail
Failed to set field choice[0][chtext] to choice 1 [Other] Fail
Failed to set field choice[1][chtext] to choice 2 [Other] Fail
Failed to set field choice[2][chtext] to choice 3 [Other] Fail
Failed to set field choice[3][chtext] to choice 4 [Other] Fail
Failed to set field choice[4][chtext] to choice 5 [Other] Fail
Failed to set field choice[5][chtext] to choice 6 [Other] Fail
Failed to set field choice[6][chtext] to choice 7 [Other] Fail
bar 0 found in preview at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 32] [Other] Fail
bar 1 found in preview at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 32] [Other] Fail
bar 2 found in preview at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 32] [Other] Fail
bar 3 found in preview at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 32] [Other] Fail
bar 4 found in preview at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 32] [Other] Fail
bar 5 found in preview at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 32] [Other] Fail
bar 6 found in preview at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 32] [Other] Fail
Found the requested form at [Other] Fail
Failed to set field choice[0][chtext] to choice 1 [Other] Fail
Failed to set field choice[1][chtext] to choice 2 [Other] Fail
Failed to set field choice[2][chtext] to choice 3 [Other] Fail
Failed to set field choice[3][chtext] to choice 4 [Other] Fail
Failed to set field choice[4][chtext] to choice 5 [Other] Fail
Failed to set field choice[5][chtext] to choice 6 [Other] Fail
Failed to set field choice[6][chtext] to choice 7 [Other] Fail
Poll has been created. at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 38] [Other] Fail
Poll has been found in the database at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 39] [Other] Fail
Unexpected PHP error [Trying to get property of non-object] severity [E_NOTICE] in [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 37] [PHP] Exception
Found the requested form at node/add/poll [Other] Fail
Failed to set field choice[0][chtext] to choice 1 [Other] Fail
Failed to set field choice[1][chtext] to choice 2 [Other] Fail
Found the requested form at [Other] Fail
ailed to set field choice[0][chtext] to choice 1 [Other] Fail
Failed to set field choice[1][chtext] to choice 2 [Other] Fail
Failed to set field choice[2][chtext] to choice 3 [Other] Fail
Failed to set field choice[3][chtext] to choice 4 [Other] Fail
Failed to set field choice[4][chtext] to choice 5 [Other] Fail
Failed to set field choice[5][chtext] to choice 6 [Other] Fail
Failed to set field choice[6][chtext] to choice 7 [Other] Fail
Poll has been created. at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 38] [Other] Fail
Poll has been found in the database at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 39] [Other] Fail
Found the requested form at node/ [Other] Fail
Found the Vote button [Other] Fail
Failed to set field choice to 1 [Other] Fail
Your vote was recorded. at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 87] [Other] Fail
ote table text. at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 89] [Other] Fail
vote recorded at [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 90] [Other] Fail
Unexpected PHP error [Trying to get property of non-object] severity [E_NOTICE] in [/Applications/MAMP/htdocs/head/modules/poll/poll.test line 37] [PHP] Exception
Comment | File | Size | Author |
---|---|---|---|
#3 | 260492-poll-tests-failed-3.patch | 5.56 KB | Damien Tournoud |
#2 | 260492-poll-tests-failed-2.patch | 5.35 KB | Damien Tournoud |
#1 | 260492-poll-tests-failed.patch | 3.36 KB | Damien Tournoud |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedMost of these failures are bugs in the test.
Here is a first attempt at refactoring it.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedHere is a second shot at refactoring poll tests, with a more generic way to create polls.
This covers only a tiny part of poll features. Untested features includes:
Comment #3
Damien Tournoud CreditAttribution: Damien Tournoud commentedThe same patch, with a refactored test choices generation, and with the correction of a bug of the test with number of choices > 7.
Comment #4
catch74 passes, 0 fails and 0 exceptions. Looks good to me. We can add more coverage in later patches.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #6
webchickI think a similar fix to this might fix the DB Log tests. Damien, would you have a chance to take a look?
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.