diff -u b/core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php b/core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php --- b/core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php +++ b/core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php @@ -40,7 +40,7 @@ public function install(array $module_list, $enable_dependencies = TRUE); /** - * Uninstalls a given list of disabled modules. + * Uninstalls a given list of modules. * * @param array $module_list * The modules to uninstall. diff -u b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php --- b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php +++ b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php @@ -195,7 +195,7 @@ require_once DRUPAL_ROOT . '/core/includes/install.inc'; $this->container->get('module_installer')->uninstall(array('taxonomy')); - \Drupal::service('module_installer')->install(array('taxonomy')); + $this->container->get('module_installer')->install(array('taxonomy')); // Now create a vocabulary with the same name. All fields // connected to this vocabulary name should have been removed when the