From 31dbee5459b706738273d20d8315c31e0a6f6336 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 13 Apr 2009 18:52:38 +0000 Subject: - Patch #432154 by Berdir: fixed bug in taxonomy_vocabulary_load_multiple. With tests. --- modules/taxonomy/taxonomy.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/taxonomy/taxonomy.test') diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index fda432120..636c7a030 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -276,6 +276,11 @@ public static function getInfo() { // Fetch vocabulary 1 by name and ID. $this->assertTrue(current(taxonomy_vocabulary_load_multiple(array($vocabulary1->vid), array('name' => $vocabulary1->name))) == $vocabulary1, t('Vocabulary loaded successfully by name and ID.')); + + // Fetch vocabulary 1 with specified node type. + drupal_static_reset('taxonomy_vocabulary_load_multiple'); + $vocabulary_node_type = current(taxonomy_vocabulary_load_multiple(array($vocabulary1->vid), array('type' => 'article'))); + $this->assertEqual($vocabulary_node_type, $vocabulary1, t('Vocabulary with specified node type loaded successfully.')); } } -- cgit v1.2.3