You are here

function JavaScriptTestCase::resetStaticVariables in Drupal 7

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 1929
Tests for common.inc functionality.

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');
}