Issue #3035347 by claudiu.cristea: Remove usage of drupal_static_reset() from ContentTranslationTestBase
parent
be934e61e2
commit
b3a65cfd1f
|
@ -174,7 +174,7 @@ abstract class ContentTranslationTestBase extends WebTestBase {
|
|||
// Enable translation for the current entity type and ensure the change is
|
||||
// picked up.
|
||||
\Drupal::service('content_translation.manager')->setEnabled($this->entityTypeId, $this->bundle, TRUE);
|
||||
drupal_static_reset();
|
||||
|
||||
\Drupal::entityManager()->clearCachedDefinitions();
|
||||
\Drupal::service('router.builder')->rebuild();
|
||||
\Drupal::service('entity.definition_update_manager')->applyUpdates();
|
||||
|
|
|
@ -168,7 +168,7 @@ abstract class ContentTranslationTestBase extends BrowserTestBase {
|
|||
// Enable translation for the current entity type and ensure the change is
|
||||
// picked up.
|
||||
\Drupal::service('content_translation.manager')->setEnabled($this->entityTypeId, $this->bundle, TRUE);
|
||||
drupal_static_reset();
|
||||
|
||||
\Drupal::service('router.builder')->rebuild();
|
||||
\Drupal::service('entity.definition_update_manager')->applyUpdates();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue