From d31c77513b14d3424474bf65d207e6b0f9b585ac Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 5 Nov 2008 12:47:23 +0000 Subject: - Patch #329140 by catch, pwolanin: improve consistency of vocabulary API and term API. --- modules/forum/forum.test | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/forum/forum.test') 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'); } /** -- cgit v1.2.3