You are here

function LocationTestCase::deleteNode in Location 7.4

Same name and namespace in other branches
  1. 6.3 tests/location_testcase.php \LocationTestCase::deleteNode()
  2. 7.5 tests/location_testcase.php \LocationTestCase::deleteNode()
  3. 7.3 tests/location_testcase.test \LocationTestCase::deleteNode()

Delete a node.

3 calls to LocationTestCase::deleteNode()
CowInstanceTest::testSharedLocation in tests/cow.test
LocationCCKTest::testNodeRevisionCleanup in tests/location_cck.test
LocationCCKTest::testSharedLocation in tests/location_cck.test

File

tests/location_testcase.php, line 135
Common functions for Location tests.

Class

LocationTestCase

Code

function deleteNode($nid) {
  return node_delete($nid);

  /*
  // Implemention taken from node_delete, with some assumptions regarding
  // function_exists removed.

  $node = node_load($nid);
  db_query('DELETE FROM {node} WHERE nid = %d', $node->nid);
  db_query('DELETE FROM {node_revisions} WHERE nid = %d', $node->nid);

  // Call the node-specific callback (if any):
  node_invoke($node, 'delete');
  node_invoke_nodeapi($node, 'delete');

  // Clear the page and block caches.
  cache_clear_all();
  */
}