Issue #3039051 by claudiu.cristea, markdorison: Remove useless static cache reset and route rebuilding from TaxonomyTranslationTestTrait(s) & TaxonomyTermViewTest

merge-requests/1119/head
catch 2019-04-16 14:58:28 +09:00
parent c080fb87f3
commit 59dd24ad61
3 changed files with 0 additions and 6 deletions

View File

@ -70,9 +70,7 @@ trait TaxonomyTranslationTestTrait {
// picked up. // picked up.
\Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE); \Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE);
\Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE); \Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE);
drupal_static_reset();
\Drupal::entityManager()->clearCachedDefinitions(); \Drupal::entityManager()->clearCachedDefinitions();
\Drupal::service('router.builder')->rebuild();
} }
/** /**

View File

@ -65,8 +65,6 @@ trait TaxonomyTranslationTestTrait {
// picked up. // picked up.
\Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE); \Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE);
\Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE); \Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE);
drupal_static_reset();
\Drupal::service('router.builder')->rebuild();
} }
/** /**

View File

@ -100,8 +100,6 @@ class TaxonomyTermViewTest extends TaxonomyTestBase {
->grantPermission('create content translations') ->grantPermission('create content translations')
->grantPermission('translate any entity') ->grantPermission('translate any entity')
->save(); ->save();
drupal_static_reset();
\Drupal::service('router.builder')->rebuild();
$edit['title[0][value]'] = $translated_title = $this->randomMachineName(); $edit['title[0][value]'] = $translated_title = $this->randomMachineName();