diff --git a/core/modules/system/tests/modules/new_dependency_test/new_dependency_test.install b/core/modules/system/tests/modules/new_dependency_test/new_dependency_test.install new file mode 100644 index 0000000000..2ab3e6b498 --- /dev/null +++ b/core/modules/system/tests/modules/new_dependency_test/new_dependency_test.install @@ -0,0 +1,51 @@ +set( + 'new_dependency_test_update_8001.decorated_service', + \Drupal::service('new_dependency_test.another_service')->isDecorated() + ); + + \Drupal::state()->set( + 'new_dependency_test_update_8001.decorated_service_custom_inner', + \Drupal::service('new_dependency_test.another_service_two')->isDecorated() + ); + + $map = []; + foreach ($services as $id) { + $map[$id] = \Drupal::hasService($id); + } + \Drupal::state()->set('new_dependency_test_update_8001.has_before_install', $map); + + // During the update hooks the container is cleaned up to contain only + // services that have their dependencies met. Core services are available. + \Drupal::getContainer()->get('module_installer')->install(['new_dependency_test_with_service']); + + // Gather the state of the services after installing the + // new_dependency_test_with_service module. + $map = []; + foreach ($services as $id) { + $map[$id] = \Drupal::hasService($id); + } + \Drupal::state()->set('new_dependency_test_update_8001.has_after_install', $map); +} diff --git a/core/modules/workspaces/tests/src/Functional/Update/WorkspacesUpdateTest.php b/core/modules/workspaces/tests/src/Functional/Update/WorkspacesUpdateTest.php deleted file mode 100644 index 8d0e26def2..0000000000 --- a/core/modules/workspaces/tests/src/Functional/Update/WorkspacesUpdateTest.php +++ /dev/null @@ -1,38 +0,0 @@ -databaseDumpFiles = [ - __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.8.0.filled.standard.php.gz', - __DIR__ . '/../../../fixtures/update/drupal-8.8.0-workspaces_installed.php', - ]; - } - - /** - * {@inheritdoc} - */ - protected function replaceUser1() { - // Do not replace the user from our dump. - } - -}