public function LongAnswerUnitTest::unitTestCheckNodeProperties in Quiz 7
Same name and namespace in other branches
- 6.6 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
- 6.3 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
- 6.4 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
- 6.5 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
- 7.4 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
Test that the appropriate data was stored in the node properties table.
1 call to LongAnswerUnitTest::unitTestCheckNodeProperties()
- 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 171 - Unit tests for the long_answer Module.
Class
- LongAnswerUnitTest
- Unit tests for the long_answer Module. @file
Code
public function unitTestCheckNodeProperties() {
$max = db_result(db_query('SELECT maximum_score FROM {quiz_long_answer_node_properties} WHERE nid = %d', $this->nid1));
$this
->assertEqual($max, $this->max_score, t('Test that max score was appropriately stored in database.'));
}