Issue #3035347 by claudiu.cristea: Remove usage of drupal_static_reset() from ContentTranslationTestBase

8.7.x
Nathaniel Catchpole 2019-03-01 13:18:05 +00:00
parent be934e61e2
commit b3a65cfd1f
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();
}