public function TrueFalseUnitTest::testTrueFalseQuizQuestionInfo in Quiz 7
Same name and namespace in other branches
- 6.6 question_types/truefalse/truefalse.test \TrueFalseUnitTest::testTrueFalseQuizQuestionInfo()
- 6.4 question_types/truefalse/truefalse.test \TrueFalseUnitTest::testTrueFalseQuizQuestionInfo()
- 7.4 question_types/truefalse/truefalse.test \TrueFalseUnitTest::testTrueFalseQuizQuestionInfo()
File
- question_types/
truefalse/ truefalse.test, line 81
Class
Code
public function testTrueFalseQuizQuestionInfo() {
$info = truefalse_quiz_question_info();
$this
->assertEqual(count($info), 1, t('Check that info was returned.'));
$this
->assertTrue(isset($info['true_false']), t('Check that true/false question type exists.'));
}