diff --git a/core/modules/filter/src/Tests/FilterAPITest.php b/core/modules/filter/src/Tests/FilterAPITest.php index e20fa5a..8b01fc1 100644 --- a/core/modules/filter/src/Tests/FilterAPITest.php +++ b/core/modules/filter/src/Tests/FilterAPITest.php @@ -434,7 +434,7 @@ public function testDependencyRemoval() { $this->assertEqual(['module' => ['filter_test']], $filter_format->getDependencies()); // Uninstall the module. - \Drupal::moduleHandler()->uninstall(array('filter_test')); + \Drupal::service('module_installer')->uninstall(array('filter_test')); // Verify the filter format still exists but the dependency and filter is // gone.