summaryrefslogtreecommitdiff
path: root/modules/forum/forum.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-05 12:47:23 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-05 12:47:23 +0000
commitd31c77513b14d3424474bf65d207e6b0f9b585ac (patch)
tree49f9269e7ec44000dada6cd467599104a7b2172b /modules/forum/forum.test
parentad96ff71c1c8fe11d0d69452be4cae8889a16bbe (diff)
downloadbrdo-d31c77513b14d3424474bf65d207e6b0f9b585ac.tar.gz
brdo-d31c77513b14d3424474bf65d207e6b0f9b585ac.tar.bz2
- Patch #329140 by catch, pwolanin: improve consistency of vocabulary API and term API.
Diffstat (limited to 'modules/forum/forum.test')
-rw-r--r--modules/forum/forum.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/forum/forum.test b/modules/forum/forum.test
index acad2096a..2dfb55f7b 100644
--- a/modules/forum/forum.test
+++ b/modules/forum/forum.test
@@ -143,10 +143,9 @@ class ForumTestCase extends DrupalWebTestCase {
$this->assertEqual($current_settings->description, $description, t('The description was updated'));
// Restore the original vocabulary.
- $original_settings = (array) $original_settings;
- taxonomy_save_vocabulary($original_settings);
+ taxonomy_vocabulary_save($original_settings);
$current_settings = taxonomy_vocabulary_load($vid, TRUE);
- $this->assertEqual($current_settings->name, $original_settings['name'], 'The original vocabulary settings were restored');
+ $this->assertEqual($current_settings->name, $original_settings->name, 'The original vocabulary settings were restored');
}
/**