You are here

public function ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo in Quiz 7

Same name and namespace in other branches
  1. 6.6 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo()
  2. 6.4 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo()
  3. 7.4 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo()

File

question_types/short_answer/short_answer.test, line 81

Class

ShortAnswerUnitTest

Code

public function testShortAnswerQuizQuestionInfo() {
  $info = short_answer_quiz_question_info();
  $this
    ->assertEqual(count($info), 1, t('Check that info was returned.'));
  $this
    ->assertTrue(isset($info['short_answer']), t('Check that short answer question type exists.'));
}