diff --git a/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestBase.php b/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestBase.php index b91674a..be5a145 100644 --- a/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestBase.php +++ b/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestBase.php @@ -64,7 +64,7 @@ protected function enableTranslation() { // Enable translation for the current entity type and ensure the change is // picked up. \Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE); - \Drupal::service('content_translation.manager')->setEnabled('taxonomy_vocabulary', $this->vocabulary->id(), TRUE); + \Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE); drupal_static_reset(); \Drupal::entityManager()->clearCachedDefinitions(); \Drupal::service('router.builder')->rebuild(); diff --git a/core/modules/taxonomy/src/Tests/TermTranslationBreadcrumbTest.php b/core/modules/taxonomy/src/Tests/TermTranslationBreadcrumbTest.php index e36fe95..79dcc71 100644 --- a/core/modules/taxonomy/src/Tests/TermTranslationBreadcrumbTest.php +++ b/core/modules/taxonomy/src/Tests/TermTranslationBreadcrumbTest.php @@ -49,7 +49,6 @@ protected function setUp() { $this->enableTranslation(); $this->setUpTerms(); $this->setUpTermReferenceField(); - $this->setUpNode(); } /** @@ -200,26 +199,6 @@ protected function setUpTerms() { } /** - * Create a node and translation with the last term in the hierarchy. - */ - protected function setUpNode() { - $node = entity_create('node', array( - 'title' => $this->randomMachineName(), - 'type' => 'article', - 'description' => array( - 'value' => $this->randomMachineName(), - 'format' => 'basic_html', - ), - $this->termFieldName => array(array('target_id' => $this->getLeafTerm()->id())), - 'langcode' => $this->baseLangcode, - )); - $node->save(); - $node->addTranslation($this->translateToLangcode, array()); - $node->save(); - $this->node = $node; - } - - /** * Get the final (leaf) term in the hierarchy. * * @return \Drupal\taxonomy\Entity\Term