diff core/modules/taxonomy/tests/src/Functional/TermTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line diff
--- a/core/modules/taxonomy/tests/src/Functional/TermTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/taxonomy/tests/src/Functional/TermTest.php	Thu May 09 15:34:47 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 = [];