You are here

public function TrueFalseUnitTest::testTrueFalseQuizQuestionInfo in Quiz 7.4

Same name and namespace in other branches
  1. 6.6 question_types/truefalse/truefalse.test \TrueFalseUnitTest::testTrueFalseQuizQuestionInfo()
  2. 6.4 question_types/truefalse/truefalse.test \TrueFalseUnitTest::testTrueFalseQuizQuestionInfo()
  3. 7 question_types/truefalse/truefalse.test \TrueFalseUnitTest::testTrueFalseQuizQuestionInfo()

File

question_types/truefalse/truefalse.test, line 81

Class

TrueFalseUnitTest

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.'));
}