Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

Overrides DrupalWebTestCase::tearDown

File

modules/simpletest/simpletest.test, line 610
Tests for simpletest.module.

Class

SimpleTestBrokenSetUp
Tests a test case that does not run parent::setUp() in its setUp() method.

Code

function tearDown() {

  // If the test is being run from the main site, tear down normally.
  if (!drupal_valid_test_ua()) {
    parent::tearDown();
  }
  else {

    // If the test is being run from within simpletest, output a message.
    $this
      ->pass(t('The tearDown() method has run.'));
  }
}