diff --git a/core/modules/taxonomy/taxonomy.test b/core/modules/taxonomy/taxonomy.test index 747d822..0eeb9f7 100644 --- a/core/modules/taxonomy/taxonomy.test +++ b/core/modules/taxonomy/taxonomy.test @@ -826,6 +826,21 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { $terms = taxonomy_get_term_by_name(drupal_substr($term->name, 2)); $this->assertFalse($terms); } + + /** + * Tests that the parent term is linked to from the child term page. + */ + function testTaxonomyTermHierarchyBreadcrumbs() { + // Create two taxonomy terms and set term2 the parent of term1. + $term1 = $this->createTerm($this->vocabulary); + $term2 = $this->createTerm($this->vocabulary); + $term1->parent = array($term2->tid); + taxonomy_term_save($term1); + + // Check for breadcrumb links to parent term. + $this->drupalGet('taxonomy/term/' . $term1->tid); + $this->assertRaw(l($term2->name, 'taxonomy/term/' . $term2->tid), t('Parent term link is displayed when viewing the node.')); + } } /**