diff --git a/core/modules/book/src/Tests/BookUninstallTest.php b/core/modules/book/src/Tests/BookUninstallTest.php index 8a7a0c8..f9ebbe4 100644 --- a/core/modules/book/src/Tests/BookUninstallTest.php +++ b/core/modules/book/src/Tests/BookUninstallTest.php @@ -96,7 +96,7 @@ public function testBookUninstall() { $this->assertFalse(isset($module_data['book']->info['required']), 'The book module is not required.'); // Uninstall the Book module and check the node type is deleted. - \Drupal::moduleHandler()->uninstall(['book']); + \Drupal::service('module_installer')->uninstall(array('book')); $this->assertNull(NodeType::load('book'), "The book node type does not exist."); }