You are here

public function LongAnswerUnitTest::unitTestCheckNodeProperties in Quiz 7.4

Same name and namespace in other branches
  1. 6.6 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
  2. 6.3 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
  3. 6.4 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
  4. 6.5 question_types/long_answer/long_answer.test \LongAnswerUnitTest::unitTestCheckNodeProperties()
  5. 7 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.'));
}