You are here

public function MatchingUnitTest::unitTestCheckMatchingQuestionsList in Quiz 7

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

Check that question exists in DB.

1 call to MatchingUnitTest::unitTestCheckMatchingQuestionsList()
MatchingUnitTest::testMatchingNodeOperations in question_types/matching/matching.test
Run a bundle of Node API tests.

File

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

Class

MatchingUnitTest
@file Unit tests for the matching Module.

Code

public function unitTestCheckMatchingQuestionsList() {
  $questions = matching_questions_list();
  $this
    ->assertEqual(count($questions), 1, t('Verify that the question exists.'));
}