diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php index 683e073..1926396 100644 --- a/core/modules/taxonomy/src/Tests/TermTest.php +++ b/core/modules/taxonomy/src/Tests/TermTest.php @@ -123,7 +123,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(); + $taxonomy_storage->resetCache(); $parents = $taxonomy_storage->loadParents($term2->id()); $this->assertTrue(count($parents) == 1, 'Term has one parent.'); }