function PollTestCase::_generateChoices

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.

... See full list

File

modules/poll/poll.test, line 108

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.