You are here

public function TrueFalseUnitTest::unitTestDeleteTrueFalseQuestionNode in Quiz 7

Same name and namespace in other branches
  1. 6.6 question_types/truefalse/truefalse.test \TrueFalseUnitTest::unitTestDeleteTrueFalseQuestionNode()
  2. 6.4 question_types/truefalse/truefalse.test \TrueFalseUnitTest::unitTestDeleteTrueFalseQuestionNode()
  3. 7.4 question_types/truefalse/truefalse.test \TrueFalseUnitTest::unitTestDeleteTrueFalseQuestionNode()

Test deleting of true false question node.

1 call to TrueFalseUnitTest::unitTestDeleteTrueFalseQuestionNode()
TrueFalseUnitTest::testTrueFalseNodeOperations in question_types/truefalse/truefalse.test
Run a bundle of Node API tests.

File

question_types/truefalse/truefalse.test, line 140

Class

TrueFalseUnitTest

Code

public function unitTestDeleteTrueFalseQuestionNode() {

  /*  $node = node_load($this->node_id);
      if ($node === FALSE) {
        throw new Exception("Expected fixture to have valid node_id");
      }
      unset($node);
      node_delete($this->node_id);
      $node = node_load($this->nid);
      $this->assertFalse($node, t('Test that node was deleted'));
      * */
}