function JavaScriptTestCase::resetStaticVariables
Resets static variables related to adding JavaScript to a page.
1 call to JavaScriptTestCase::resetStaticVariables()
- JavaScriptTestCase::testJavaScriptAlwaysUseJQuery in modules/
simpletest/ tests/ common.test - Test the 'javascript_always_use_jquery' variable.
File
-
modules/
simpletest/ tests/ common.test, line 2056
Class
- JavaScriptTestCase
- Tests for the JavaScript system.
Code
function resetStaticVariables() {
drupal_static_reset('drupal_add_js');
drupal_static_reset('drupal_add_library');
drupal_static_reset('drupal_get_library');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.