You are here

function NodeRevisionsTest::cleanup in SimpleTest 6

Cleanup function used by tests. Deletes the associated node.

4 calls to NodeRevisionsTest::cleanup()
NodeRevisionsTest::testLogMessage in tests/node_revisions.test
Simpletest test. Tests to make sure the correct log message appears on "revisions overview" page.
NodeRevisionsTest::testNodeRevisions in tests/node_revisions.test
Simpletest test. Tests to make sure the correct revision text appears on "view revisions" page.
NodeRevisionsTest::testRevisionDelete in tests/node_revisions.test
Simpletest test. Tests to make sure the revision deletes properly.
NodeRevisionsTest::testRevisionRevert in tests/node_revisions.test
Simpletest test. Tests to make sure the that revisions revert properly.

File

tests/node_revisions.test, line 105

Class

NodeRevisionsTest

Code

function cleanup($nid) {
  node_delete($nid);
}