function BrokenSetUpTest::tearDown

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

Overrides WebTestBase::tearDown

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/BrokenSetUpTest.php, line 54
Definition of Drupal\simpletest\Tests\BrokenSetUpTest.

Class

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

Namespace

Drupal\simpletest\Tests

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.'));
  }
}