diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-03 00:13:41 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-03 00:13:41 -0500 |
commit | 0c8dc6ea062cd7595a7b6fbd02fb0f0294ccecef (patch) | |
tree | 2ed76eeaa6b567b880a039b5e4e7daecddac9305 /modules/poll/poll.test | |
parent | 010a9a54e74f7762e17591cb16881ae16637ef7d (diff) | |
download | brdo-0c8dc6ea062cd7595a7b6fbd02fb0f0294ccecef.tar.gz brdo-0c8dc6ea062cd7595a7b6fbd02fb0f0294ccecef.tar.bz2 |
Issue #1823906 by joshi.rohit100, amitgoyal, rahulbile | gargsuchi: Fixed Incorrect error message when poll is submitted with no option selected.
Diffstat (limited to 'modules/poll/poll.test')
-rw-r--r-- | modules/poll/poll.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/poll/poll.test b/modules/poll/poll.test index 35eea2237..e24032d5a 100644 --- a/modules/poll/poll.test +++ b/modules/poll/poll.test @@ -315,6 +315,11 @@ class PollVoteTestCase extends PollTestCase { $this->drupalLogin($vote_user); + // Record a vote without selecting any choice. + $edit = array(); + $this->drupalPost('node/' . $poll_nid, $edit, t('Vote')); + $this->assertText(t('Your vote could not be recorded because you did not select any of the choices.'), 'Found the empty poll submission error message.'); + // Record a vote for the first choice. $edit = array( 'choice' => '1', |