protected function WebTestBase::tearDown

Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

Overrides TestBase::tearDown

6 calls to WebTestBase::tearDown()
BrokenSetUpTest::tearDown in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/BrokenSetUpTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
IpAddressTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/Bootstrap/IpAddressTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
JavaScriptTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
PageTitleFilteringTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/System/PageTitleFilteringTest.php
Reset page title.
PollVoteTest::tearDown in drupal/core/modules/poll/lib/Drupal/poll/Tests/PollVoteTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

... See full list

6 methods override WebTestBase::tearDown()
BrokenSetUpTest::tearDown in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/BrokenSetUpTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
IpAddressTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/Bootstrap/IpAddressTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
JavaScriptTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
PageTitleFilteringTest::tearDown in drupal/core/modules/system/lib/Drupal/system/Tests/System/PageTitleFilteringTest.php
Reset page title.
PollVoteTest::tearDown in drupal/core/modules/poll/lib/Drupal/poll/Tests/PollVoteTest.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

... See full list

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 817
Definition of Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function tearDown() {

  // Destroy the testing kernel.
  if (isset($this->kernel)) {
    $this->kernel
      ->shutdown();
  }
  parent::tearDown();

  // Ensure that internal logged in variable and cURL options are reset.
  $this->loggedInUser = FALSE;
  $this->additionalCurlOptions = array();

  // Reload module list and implementations to ensure that test module hooks
  // aren't called after tests.
  system_list_reset();
  module_list_reset();
  module_implements_reset();

  // Reset the Field API.
  field_cache_clear();

  // Rebuild caches.
  $this
    ->refreshVariables();

  // Close the CURL handler.
  $this
    ->curlClose();
}