function WebformTestCase::tearDown in Webform 6.2
Same name and namespace in other branches
- 6.3 tests/webform.test \WebformTestCase::tearDown()
- 7.4 tests/WebformTestCase.test \WebformTestCase::tearDown()
- 7.3 tests/webform.test \WebformTestCase::tearDown()
Implemenation of tearDown().
Overrides DrupalWebTestCase::tearDown
2 calls to WebformTestCase::tearDown()
- WebformPermissionsTestCase::tearDown in tests/
permissions.test - Implementation of tearDown().
- WebformSubmissionTestCase::tearDown in tests/
submission.test - Implementation of tearDown().
2 methods override WebformTestCase::tearDown()
- WebformPermissionsTestCase::tearDown in tests/
permissions.test - Implementation of tearDown().
- WebformSubmissionTestCase::tearDown in tests/
submission.test - Implementation of tearDown().
File
- tests/
webform.test, line 76 - Webform module tests.
Class
- WebformTestCase
- @file Webform module tests.
Code
function tearDown() {
// Delete the webform admin and any created nodes.
foreach ($this->webform_users as $account) {
$uid = $account->uid;
$result = db_query('SELECT nid FROM {node} WHERE uid = %d', $uid);
while ($node = db_fetch_array($result)) {
node_delete($node['nid']);
}
user_delete(array(), $uid);
}
parent::tearDown();
}