You are here

public function ShortAnswerUnitTest::unitTestShortAnswerQuestionsList in Quiz 7.4

Same name and namespace in other branches
  1. 6.6 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::unitTestShortAnswerQuestionsList()
  2. 6.4 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::unitTestShortAnswerQuestionsList()
  3. 7 question_types/short_answer/short_answer.test \ShortAnswerUnitTest::unitTestShortAnswerQuestionsList()

Check that question exists in DB.

1 call to ShortAnswerUnitTest::unitTestShortAnswerQuestionsList()
ShortAnswerUnitTest::testShortAnswerNodeOperations in question_types/short_answer/short_answer.test
Run a bundle of Node API tests.

File

question_types/short_answer/short_answer.test, line 169

Class

ShortAnswerUnitTest

Code

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