diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php index 0cd7618..9320fbb 100644 --- a/core/modules/taxonomy/src/Tests/TermTest.php +++ b/core/modules/taxonomy/src/Tests/TermTest.php @@ -111,6 +111,15 @@ function testTaxonomyTermHierarchy() { $term2->save(); $parents = taxonomy_term_load_parents($term2->id()); $this->assertTrue(isset($parents[$term1->id()]) && isset($parents[$term3->id()]), 'Both parents found successfully.'); + + // Delete term 3 from the term edit page. + $this->drupalGet('taxonomy/term/' . $term3->id() . '/edit'); + $this->clickLink(t('Delete')); + //$this->drupalPostForm(NULL, NULL, t('Delete')); + + // Check the hierarchy after deleting one parent of multiple parents. + $parents = taxonomy_term_load_parents($term2->id()); + $this->assertTrue(count($parents) == 1, 'Term has one parent.'); } /**