You are here

public function LongAnswerUnitTest::getRandSize in Quiz 7.4

Same name and namespace in other branches
  1. 6.6 question_types/long_answer/long_answer.test \LongAnswerUnitTest::getRandSize()
  2. 6.4 question_types/long_answer/long_answer.test \LongAnswerUnitTest::getRandSize()
  3. 7 question_types/long_answer/long_answer.test \LongAnswerUnitTest::getRandSize()
2 calls to LongAnswerUnitTest::getRandSize()
LongAnswerUnitTest::createLongAnswerQuestion in question_types/long_answer/long_answer.test
Utility function for creating a new test question.
LongAnswerUnitTest::setUp in question_types/long_answer/long_answer.test
Sets up a Drupal site for running functional and integration tests.

File

question_types/long_answer/long_answer.test, line 43
Unit tests for the long_answer Module.

Class

LongAnswerUnitTest
Unit tests for the long_answer Module. @file

Code

public function getRandSize() {
  return rand($this->min, $this->max);
}