function PollTestCase::_generateChoices
7.x poll.test | PollTestCase::_generateChoices($count = 7) |
7 calls to PollTestCase::_generateChoices()
- PollBlockTestCase::testRecentBlock in drupal-7.x/
modules/ poll/ poll.test - PollCreateTestCase::testPollClose in drupal-7.x/
modules/ poll/ poll.test - PollCreateTestCase::testPollCreate in drupal-7.x/
modules/ poll/ poll.test - PollExpirationTestCase::testAutoExpire in drupal-7.x/
modules/ poll/ poll.test - PollTokenReplaceTestCase::testPollTokenReplacement in drupal-7.x/
modules/ poll/ poll.test - Creates a poll, then tests the tokens generated from it.
File
- drupal-7.x/
modules/ poll/ poll.test, line 108 - Tests for poll.module.
Class
Code
function _generateChoices($count = 7) {
$choices = array();
for ($i = 1; $i <= $count; $i++) {
$choices[] = $this->randomName();
}
return $choices;
}