Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / book / tests / src / Kernel / BookUninstallTest.php
index 9430991ffe7472bb054035109dd68246876f7aac..d4205ebf11bc7be8c8808745f82495be20d60bb4 100644 (file)
@@ -76,7 +76,7 @@ class BookUninstallTest extends KernelTestBase {
 
     $book_node->delete();
     // No nodes exist therefore the book module is not required.
-    $module_data = _system_rebuild_module_data();
+    $module_data = \Drupal::service('extension.list.module')->reset()->getList();
     $this->assertFalse(isset($module_data['book']->info['required']), 'The book module is not required.');
 
     $node = Node::create(['title' => $this->randomString(), 'type' => $content_type->id()]);