diff --git modules/taxonomy/taxonomy.test modules/taxonomy/taxonomy.test index c622d6a..e289abf 100644 --- modules/taxonomy/taxonomy.test +++ modules/taxonomy/taxonomy.test @@ -460,6 +460,14 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { taxonomy_term_save($term2); $parents = taxonomy_get_parents($term2->tid); $this->assertTrue(isset($parents[$term1->tid]) && isset($parents[$term3->tid]), t('Both parents found successfully.')); + // Regression test for http://drupal.org/node/353775 + $vocab = end(entity_load('taxonomy_vocabulary', array($this->vocabulary->vid), array(), TRUE)); + $this->assertEqual($vocab->hierarchy, 1, 'Vocabulary is marked as hierarchical.'); + // Edit the vocabulary. This should not change the hierarchy value. + $edit = array(); + $this->drupalPost('admin/structure/taxonomy/' . $this->vocabulary->machine_name . '/edit', $edit, t('Save')); + $vocab = end(entity_load('taxonomy_vocabulary', array($this->vocabulary->vid), array(), TRUE)); + $this->assertEqual($vocab->hierarchy, 1, 'Vocabulary is marked as hierarchical.'); } /**