public function LongAnswerUnitTest::testLongAnswerQuizQuestionInfo in Quiz 7
Same name and namespace in other branches
- 6.6 question_types/long_answer/long_answer.test \LongAnswerUnitTest::testLongAnswerQuizQuestionInfo()
- 6.4 question_types/long_answer/long_answer.test \LongAnswerUnitTest::testLongAnswerQuizQuestionInfo()
- 7.4 question_types/long_answer/long_answer.test \LongAnswerUnitTest::testLongAnswerQuizQuestionInfo()
Check that hook_quiz_question_info is working.
File
- question_types/
long_answer/ long_answer.test, line 85 - Unit tests for the long_answer Module.
Class
- LongAnswerUnitTest
- Unit tests for the long_answer Module. @file
Code
public function testLongAnswerQuizQuestionInfo() {
$info = long_answer_quiz_question_info();
$this
->assertEqual(count($info), 1, t('Check that info was returned.'));
$this
->assertTrue(isset($info['long_answer']), t('Check that long answer question type exists.'));
}