Skip navigation
Help

DrupalUnitTestCase::tearDown

7 drupal_web_test_case.php protected DrupalUnitTestCase::tearDown()

1 call to DrupalUnitTestCase::tearDown()

File

drupal/modules/simpletest/drupal_web_test_case.php, line 696

Code

protected function tearDown() {
  global $conf;

  // Get back to the original connection.
  Database::removeConnection('default');
  Database::renameConnection('simpletest_original_default', 'default');

  $conf['file_public_path'] = $this->originalFileDirectory;
  // Restore modules if necessary.
  if (isset($this->originalModuleList)) {
    module_list(TRUE, FALSE, FALSE, $this->originalModuleList);
  }
}