diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-05-26 17:12:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-05-26 17:12:55 +0000 |
commit | c529e4afbece1355bee882500faf2fd0c059048a (patch) | |
tree | a4fbe98ab46c3ae8f2c9ff6d085cca8eb3c009fe /modules/poll/poll.test | |
parent | 035713ea5c2f2aba2d5f9827dceb7c504c11de2e (diff) | |
download | brdo-c529e4afbece1355bee882500faf2fd0c059048a.tar.gz brdo-c529e4afbece1355bee882500faf2fd0c059048a.tar.bz2 |
- Patch #101543 by webchick: document all constants.
Diffstat (limited to 'modules/poll/poll.test')
-rw-r--r-- | modules/poll/poll.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/poll/poll.test b/modules/poll/poll.test index 4939f0007..69865b7d1 100644 --- a/modules/poll/poll.test +++ b/modules/poll/poll.test @@ -19,7 +19,7 @@ class PollTestCase extends DrupalWebTestCase { // Get the form first to initialize the state of the internal browser $this->drupalGet('node/add/poll'); - + // Prepare a form with two choices list($edit, $index) = $this->_pollGenerateEdit($title, $choices); @@ -53,7 +53,7 @@ class PollTestCase extends DrupalWebTestCase { $max_new_choices = $index == 0 ? 2 : 5; $already_submitted_choices = array_slice($choices, 0, $index); $new_choices = array_values(array_slice($choices, $index, $max_new_choices)); - + $edit = array( 'title' => $title ); @@ -65,7 +65,7 @@ class PollTestCase extends DrupalWebTestCase { } return array($edit, count($already_submitted_choices) + count($new_choices)); } - + function _generateChoices($count = 7) { $choices = array(); for($i = 1; $i <= $count; $i++) { @@ -119,7 +119,7 @@ class PollVoteTestCase extends PollTestCase { $web_user = $this->drupalCreateUser(array('cancel own vote', 'inspect all votes', 'vote on polls', 'access content')); $this->drupalLogin($web_user); - + // Record a vote for the first choice. $edit = array ( 'choice' => '1', |