summaryrefslogtreecommitdiff
path: root/modules/forum/forum.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-02 20:39:45 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-02 20:39:45 +0000
commit3a35e28f923e887c0ef486753b6a926e4dee3662 (patch)
treee9e41dd8e9c638b9225dd68d7c689dc9e8429209 /modules/forum/forum.test
parentb25e08ba75174654136f409871d4dd059872bf1d (diff)
downloadbrdo-3a35e28f923e887c0ef486753b6a926e4dee3662.tar.gz
brdo-3a35e28f923e887c0ef486753b6a926e4dee3662.tar.bz2
- 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!
Diffstat (limited to 'modules/forum/forum.test')
-rw-r--r--modules/forum/forum.test6
1 files changed, 4 insertions, 2 deletions
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');
}