From 3a35e28f923e887c0ef486753b6a926e4dee3662 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 2 Apr 2009 20:39:45 +0000 Subject: - Patch #254491 by chx, catch, justinrandell, pwolanin, David_Rothstein, et al: centralized static caching to improve testability of the Drupal code, and to remove $reset-parameters. Thanks for taking the time to convince me, catch! --- modules/forum/forum.test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/forum/forum.test') diff --git a/modules/forum/forum.test b/modules/forum/forum.test index 9dbfa3952..0ed99ad03 100644 --- a/modules/forum/forum.test +++ b/modules/forum/forum.test @@ -135,7 +135,8 @@ class ForumTestCase extends DrupalWebTestCase { $this->assertRaw(t('Updated vocabulary %name.', array('%name' => $title)), t('Vocabulary was edited')); // Grab the newly edited vocabulary. - $current_settings = taxonomy_vocabulary_load($vid, TRUE); + drupal_static_reset('taxonomy_vocabulary_load_multiple'); + $current_settings = taxonomy_vocabulary_load($vid); // Make sure we actually edited the vocabulary properly. $this->assertEqual($current_settings->name, $title, t('The name was updated')); @@ -143,7 +144,8 @@ class ForumTestCase extends DrupalWebTestCase { // Restore the original vocabulary. taxonomy_vocabulary_save($original_settings); - $current_settings = taxonomy_vocabulary_load($vid, TRUE); + drupal_static_reset('taxonomy_vocabulary_load'); + $current_settings = taxonomy_vocabulary_load($vid); $this->assertEqual($current_settings->name, $original_settings->name, 'The original vocabulary settings were restored'); } -- cgit v1.2.3