You are here

function simpletest_uninstall in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/simpletest.install \simpletest_uninstall()

Implements hook_uninstall().

File

core/modules/simpletest/simpletest.install, line 183
Install, update and uninstall functions for the simpletest module.

Code

function simpletest_uninstall() {

  // Do not clean the environment in case the Simpletest module is uninstalled
  // in a (recursive) test for itself, since simpletest_clean_environment()
  // would also delete the test site of the parent test process.
  if (!drupal_valid_test_ua()) {
    simpletest_clean_environment();
  }

  // Delete verbose test output and any other testing framework files.
  file_unmanaged_delete_recursive('public://simpletest');
}