diff core/modules/taxonomy/tests/src/Functional/TermTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/core/modules/taxonomy/tests/src/Functional/TermTest.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/taxonomy/tests/src/Functional/TermTest.php	Thu May 09 15:33:08 2019 +0100
@@ -90,11 +90,11 @@
     $term2 = $this->createTerm($this->vocabulary);
 
     // Get the taxonomy storage.
-    $taxonomy_storage = $this->container->get('entity.manager')->getStorage('taxonomy_term');
+    /** @var \Drupal\taxonomy\TermStorageInterface $taxonomy_storage */
+    $taxonomy_storage = $this->container->get('entity_type.manager')->getStorage('taxonomy_term');
 
     // Check that hierarchy is flat.
-    $vocabulary = Vocabulary::load($this->vocabulary->id());
-    $this->assertEqual(0, $vocabulary->getHierarchy(), 'Vocabulary is flat.');
+    $this->assertEquals(0, $taxonomy_storage->getVocabularyHierarchyType($this->vocabulary->id()), 'Vocabulary is flat.');
 
     // Edit $term2, setting $term1 as parent.
     $edit = [];