public function LongAnswerUnitTest::testQuizQuestionInfo in Quiz 6.5
Same name and namespace in other branches
- 6.3 question_types/long_answer/long_answer.test \LongAnswerUnitTest::testQuizQuestionInfo()
Check that hook_quiz_question_info is working.
File
- question_types/
long_answer/ long_answer.test, line 35 - Unit tests for the long_answer Module.
Class
- LongAnswerUnitTest
- Unit tests for the long_answer Module. @file
Code
public function testQuizQuestionInfo() {
$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.'));
}