Skip to content
Snippets Groups Projects
Commit b3a65cfd authored by catch's avatar catch
Browse files

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

Issue #3035347 by claudiu.cristea: Remove usage of drupal_static_reset() from ContentTranslationTestBase
parent be934e61
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ protected function enableTranslation() {
// 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 @@ protected function enableTranslation() {
// 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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment