summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.test
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-04-30 21:45:47 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-04-30 21:45:47 -0700
commitb9757778158c0741d4df590a4e6b7bc51727be7f (patch)
tree496825bae11194fe1d34860ec9aba7ebe34fc718 /modules/taxonomy/taxonomy.test
parent47f1ff523d738eb7d2e66ee7f689f62c5d6964de (diff)
downloadbrdo-b9757778158c0741d4df590a4e6b7bc51727be7f.tar.gz
brdo-b9757778158c0741d4df590a4e6b7bc51727be7f.tar.bz2
Issue #277200 by andypost, Damien Tournoud: Add tests for vocabulary hierarchy.
Diffstat (limited to 'modules/taxonomy/taxonomy.test')
-rw-r--r--modules/taxonomy/taxonomy.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test
index 461f27732..bca75caae 100644
--- a/modules/taxonomy/taxonomy.test
+++ b/modules/taxonomy/taxonomy.test
@@ -560,6 +560,10 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase {
$term1 = $this->createTerm($this->vocabulary);
$term2 = $this->createTerm($this->vocabulary);
+ // Check that hierarchy is flat.
+ $vocabulary = taxonomy_vocabulary_load($this->vocabulary->vid);
+ $this->assertEqual(0, $vocabulary->hierarchy, 'Vocabulary is flat.');
+
// Edit $term2, setting $term1 as parent.
$edit = array();
$edit['parent[]'] = array($term1->tid);