only in patch2: unchanged: --- a/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php +++ b/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php @@ -52,7 +52,8 @@ public function testFieldOverrides() { $field->delete(); $field_storage = FieldStorageConfig::loadByName('node', 'body'); $this->assertTrue(count($field_storage->getBundles()) == 0, 'Node body field storage exists after deleting the only instance of a field.'); - \Drupal::moduleHandler()->uninstall(array('node')); + $module_handler = $this->container->get('module_installer'); + $module_handler->uninstall(array('node')); $field_storage = FieldStorageConfig::loadByName('node', 'body'); $this->assertFalse($field_storage, 'Node body field storage does not exist after uninstalling the Node module.'); }