You are here

public function QuizTestCase::drupalCreateQuiz in Quiz 7.6

Same name and namespace in other branches
  1. 7.5 tests/QuizTestCase.test \QuizTestCase::drupalCreateQuiz()
29 calls to QuizTestCase::drupalCreateQuiz()
MatchingTestCase::testChoicePenalty in question_types/matching/matching.test
MatchingTestCase::testTakeQuestion in question_types/matching/matching.test
QuizFeedbackTestCase::testAnswerFeedback in tests/QuizFeedbackTestCase.test
Test question feedback. Note that we are only testing if any feedback displays, each question type has its own tests for testing feedback returned from that question type.
QuizFeedbackTestCase::testQuestionBodyFeedback in tests/QuizFeedbackTestCase.test
Test Quiz question body feedback.
QuizFeedbackTestCase::testQuestionFeedback in tests/QuizFeedbackTestCase.test
Test general Quiz question feedback.

... See full list

File

tests/QuizTestCase.test, line 116
Unit tests for the quiz question Module.

Class

QuizTestCase
Base test class for Quiz questions.

Code

public function drupalCreateQuiz($settings = array()) {
  $settings += array(
    'type' => 'quiz',
    'review_options' => array(
      'end' => drupal_map_assoc(array_keys(quiz_get_feedback_options())),
    ),
  );
  return $this
    ->drupalCreateNode($settings);
}