function PollTestCase::_generateChoices

7 calls to PollTestCase::_generateChoices()
PollBlockTestCase::testRecentBlock in drupal/modules/poll/poll.test
PollCreateTestCase::testPollClose in drupal/modules/poll/poll.test
PollCreateTestCase::testPollCreate in drupal/modules/poll/poll.test
PollExpirationTestCase::testAutoExpire in drupal/modules/poll/poll.test
PollTokenReplaceTestCase::testPollTokenReplacement in drupal/modules/poll/poll.test
Creates a poll, then tests the tokens generated from it.

... See full list

File

drupal/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;
}