Commit 59dd24ad authored by catch's avatar catch

Issue #3039051 by claudiu.cristea, markdorison: Remove useless static cache...

Issue #3039051 by claudiu.cristea, markdorison: Remove useless static cache reset and route rebuilding from TaxonomyTranslationTestTrait(s) & TaxonomyTermViewTest
parent c080fb87
......@@ -70,9 +70,7 @@ protected function enableTranslation() {
// picked up.
\Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE);
\Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE);
drupal_static_reset();
\Drupal::entityManager()->clearCachedDefinitions();
\Drupal::service('router.builder')->rebuild();
}
/**
......
......@@ -65,8 +65,6 @@ protected function enableTranslation() {
// picked up.
\Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE);
\Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE);
drupal_static_reset();
\Drupal::service('router.builder')->rebuild();
}
/**
......
......@@ -100,8 +100,6 @@ public function testTaxonomyTermView() {
->grantPermission('create content translations')
->grantPermission('translate any entity')
->save();
drupal_static_reset();
\Drupal::service('router.builder')->rebuild();
$edit['title[0][value]'] = $translated_title = $this->randomMachineName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment