Deletes created files, database tables, and reverts all environment changes.
This method needs to be invoked for both unit and integration tests.
Overrides DrupalUnitTestBase::tearDown
TestBase::prepareDatabasePrefix()
TestBase::changeDatabasePrefix()
TestBase::prepareEnvironment()
public function tearDown() {
// Destruct the registered backend, each test will get a fresh instance,
// properly emptying it here ensure that on persistant data backends they
// will come up empty the next test.
foreach ($this->cachebackends as $bin => $cachebackend) {
$this->cachebackends[$bin]
->deleteAll();
}
unset($this->cachebackends);
$this
->tearDownCacheBackend();
parent::tearDown();
}