function JavaScriptTestCase::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
simpletest/ tests/ common.test, line 1535
Class
- JavaScriptTestCase
- Tests for the JavaScript system.
Code
function setUp() {
// Enable Locale and SimpleTest in the test environment.
parent::setUp('locale', 'simpletest', 'common_test');
// Disable preprocessing
$this->preprocess_js = variable_get('preprocess_js', 0);
variable_set('preprocess_js', 0);
// Reset drupal_add_js() and drupal_add_library() statics before each test.
drupal_static_reset('drupal_add_js');
drupal_static_reset('drupal_add_library');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.