function VotingAPITestCase::tearDown in Voting API 6.2
Same name and namespace in other branches
- 7.3 tests/votingapi.test \VotingAPITestCase::tearDown()
- 7.2 tests/votingapi.test \VotingAPITestCase::tearDown()
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
Overrides DrupalWebTestCase::tearDown
File
- tests/
votingapi.test, line 34 - Test file for VotingAPI module.
Class
- VotingAPITestCase
- @file Test file for VotingAPI module.
Code
function tearDown() {
$nid = variable_get('votingapi_nid1', NULL);
if ($nid) {
node_delete($nid);
variable_del('votingapi_nid1');
}
parent::tearDown();
}