public function ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo in Quiz 7
Same name and namespace in other branches
- 6.6 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo()
- 6.4 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo()
- 7.4 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::testShortAnswerQuizQuestionInfo()
File
- question_types/
short_answer/ short_answer.test, line 81
Class
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.'));
}