Resets static variables related to adding CSS or JS to a page.
Sujets associés
6 calls to advagg_test_reset_statics()
- AdvAggCascadingStylesheetsTestCase::setUp dans tests/
advagg.test - Install the advagg module and include needed files.
- AdvAggCascadingStylesheetsTestCase::testRenderFile dans tests/
advagg.test - Tests rendering the stylesheets.
- AdvAggJavaScriptTestCase::setUp dans tests/
advagg.test - Install the advagg module and include needed files.
- AdvAggJavaScriptTestCase::testJavaScriptAlwaysUsejQuery dans tests/
advagg.test - Test the 'javascript_always_use_jquery' variable.
- AdvAggThemeTestCase::setUp dans tests/
advagg.test - Install the advagg module and include needed files.
Fichier
-
tests/
advagg.test, line 26
Code
function advagg_test_reset_statics() {
drupal_static_reset('drupal_add_css');
drupal_static_reset('drupal_add_library');
drupal_static_reset('drupal_get_library');
drupal_static_reset('drupal_add_js');
drupal_static_reset('drupal_add_js:jquery_added');
drupal_static_reset('advagg_get_js');
}