Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function JavaScriptTestCase::tearDown

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

Overrides DrupalWebTestCase::tearDown

File

modules/simpletest/tests/common.test, line 1548

Class

JavaScriptTestCase
Tests for the JavaScript system.

Code

function tearDown() {
 // Restore configured value for JavaScript preprocessing.
 variable_set ('preprocess_js', $this->preprocess_js );
 parent ::tearDown ();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.