diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php index 5673bb2..a0fe397 100644 --- a/core/modules/taxonomy/src/Tests/TermTest.php +++ b/core/modules/taxonomy/src/Tests/TermTest.php @@ -118,6 +118,7 @@ function testTaxonomyTermHierarchy() { $this->drupalPostForm(NULL, NULL, t('Delete')); // Check the hierarchy after deleting one parent of multiple parents. + \Drupal::entityManager()->getStorage('taxonomy_term')->resetCache(); $parents = taxonomy_term_load_parents($term2->id()); $this->assertTrue(count($parents) == 1, 'Term has one parent.'); }