diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-16 13:26:31 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-16 13:26:31 +0000 |
commit | 8b63d832de0c708836393bdf83fffe8bf10c2a3f (patch) | |
tree | cd68c7c493ac24ad9ef0b473c613570e1c5c739c /modules | |
parent | 2a5629431504fdbd15f3d2f1fb10176c6a6357fc (diff) | |
download | brdo-8b63d832de0c708836393bdf83fffe8bf10c2a3f.tar.gz brdo-8b63d832de0c708836393bdf83fffe8bf10c2a3f.tar.bz2 |
#426906 by Rob Loach: Convert drupal_add_js/css to static caching API.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/simpletest/tests/common.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 4f58cdfa7..3fcaa454d 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -195,7 +195,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { function setUp() { parent::setUp('php'); // Reset drupal_add_css() before each test. - drupal_add_css(NULL, 'reset'); + drupal_static_reset('drupal_add_css'); } /** @@ -218,7 +218,7 @@ class CascadingStylesheetsTestCase extends DrupalWebTestCase { * Makes sure that reseting the CSS empties the cache. */ function testReset() { - drupal_add_css(NULL, 'reset'); + drupal_static_reset('drupal_add_css'); $this->assertEqual(array(), drupal_add_css(), t('Resetting the CSS empties the cache.')); } @@ -433,7 +433,7 @@ class JavaScriptTestCase extends DrupalWebTestCase { variable_set('preprocess_js', 0); // Reset drupal_add_js() before each test. - drupal_add_js(NULL, 'reset'); + drupal_static_reset('drupal_add_js'); } function tearDown() { @@ -485,7 +485,7 @@ class JavaScriptTestCase extends DrupalWebTestCase { */ function testReset() { drupal_add_js('misc/collapse.js'); - drupal_add_js(NULL, 'reset'); + drupal_static_reset('drupal_add_js'); $this->assertEqual(array(), drupal_add_js(), t('Resetting the JavaScript correctly empties the cache.')); } |