You are here

public function MatchingUnitTest::testMatchingQuizQuestionInfo in Quiz 7

Same name and namespace in other branches
  1. 6.6 question_types/matching/matching.test \MatchingUnitTest::testMatchingQuizQuestionInfo()
  2. 6.4 question_types/matching/matching.test \MatchingUnitTest::testMatchingQuizQuestionInfo()
  3. 7.4 question_types/matching/matching.test \MatchingUnitTest::testMatchingQuizQuestionInfo()

File

question_types/matching/matching.test, line 83
Unit tests for the matching Module.

Class

MatchingUnitTest
@file Unit tests for the matching Module.

Code

public function testMatchingQuizQuestionInfo() {
  $info = matching_quiz_question_info();
  $this
    ->assertEqual(count($info), 1, t('Check that info was returned.'));
  $this
    ->assertTrue(isset($info['matching']), t('Check that matching question type exists.'));
}