diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php index 1926396..26b7071 100644 --- a/core/modules/taxonomy/src/Tests/TermTest.php +++ b/core/modules/taxonomy/src/Tests/TermTest.php @@ -124,8 +124,8 @@ function testTaxonomyTermHierarchy() { // Check the hierarchy after deleting one parent of multiple parents. $taxonomy_storage->resetCache(); - $parents = $taxonomy_storage->loadParents($term2->id()); - $this->assertTrue(count($parents) == 1, 'Term has one parent.'); + $parents = $taxonomy_storage->loadTree($this->vocabulary->id(), $term3->id()); + $this->assertTrue(count($parents) == 0, 'Term 3 has no lineage.'); } /**