diff -u b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php --- b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php +++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php @@ -123,7 +123,7 @@ // Uninstall language module and ensure that the language is not part of the // query anymore. // @see \Drupal\views\Plugin\views\filter\LanguageFilter::query() - \Drupal::moduleHandler()->uninstall(['content_translation', 'language']); + \Drupal::service('module_installer')->uninstall(['content_translation', 'language']); $view = Views::getView('taxonomy_term'); $view->initDisplay();