function SimpleTestBrokenSetUp::tearDown

Overrides DrupalWebTestCase::tearDown

File

modules/simpletest/simpletest.test, line 610

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.