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