Index: modules/taxonomy/taxonomy.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.test,v
retrieving revision 1.46
diff -u -p -r1.46 taxonomy.test
--- modules/taxonomy/taxonomy.test	25 Aug 2009 21:53:48 -0000	1.46
+++ modules/taxonomy/taxonomy.test	5 Sep 2009 09:59:31 -0000
@@ -438,6 +438,23 @@ class TaxonomyTermTestCase extends Taxon
     $parents = taxonomy_get_parents($term2->tid);
     $this->assertTrue(isset($parents[$term1->tid]) && isset($parents[$term3->tid]), t('Both parents found successfully.'));
   }
+  
+  /**
+   * Test 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->assertText(l($term2->name, 'taxonomy/term/' . $term2->tid), t('Parent term link is displayed when viewing the node.'));
+    //$this->assertLink($term2->name, t('Parent term link is displayed when viewing the node.'));
+    $this->assertRaw(l($term2->name, 'taxonomy/term/' . $term2->tid), t('Parent term link is displayed when viewing the node.'));
+  }
 
   /**
    * Test that hook_node_$op implementations work correctly.
