1 simpletest.test | SimpleTestBrokenSetUp::tearDown() |
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
Overrides BackdropWebTestCase::tearDown
File
- core/
modules/ simpletest/ tests/ simpletest.test, line 569 - 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 (!backdrop_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.'));
}
}