public function LongAnswerUnitTest::unitTestListQuestions in Quiz 7.4
Same name and namespace in other branches
- 6.6 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestListQuestions()
- 6.3 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestListQuestions()
- 6.4 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestListQuestions()
- 6.5 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestListQuestions()
- 7 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestListQuestions()
Check that question exists in DB.
1 call to LongAnswerUnitTest::unitTestListQuestions()
- LongAnswerUnitTest::testNodeAPI in question_types/
long_answer/ long_answer.test - Run a bundle of Node API tests.
File
- question_types/
long_answer/ long_answer.test, line 179 - Unit tests for the long_answer Module.
Class
- LongAnswerUnitTest
- Unit tests for the long_answer Module. @file
Code
public function unitTestListQuestions() {
$questions = long_answer_questions_list();
$this
->assertEqual(count($questions), 1, t('Verify that the question exists.'));
}