Skip to content
Snippets Groups Projects
Commit 98892fa9 authored by Yash Rode's avatar Yash Rode Committed by Adam G-H
Browse files

Issue #3355553 by yash.rode, phenaproxima: Set the default installer paths for...

Issue #3355553 by yash.rode, phenaproxima: Set the default installer paths for Drupal in installComposerInstallers()
parent 06404eaa
No related branches found
No related tags found
No related merge requests found
...@@ -102,8 +102,6 @@ class EnabledExtensionsValidatorTest extends PackageManagerKernelTestBase { ...@@ -102,8 +102,6 @@ class EnabledExtensionsValidatorTest extends PackageManagerKernelTestBase {
public function testExtensionRemoved(array $packages, array $expected_results): void { public function testExtensionRemoved(array $packages, array $expected_results): void {
$project_root = $this->container->get(PathLocator::class)->getProjectRoot(); $project_root = $this->container->get(PathLocator::class)->getProjectRoot();
$this->installComposerInstallers($project_root); $this->installComposerInstallers($project_root);
// @todo Remove this in https://www.drupal.org/project/automatic_updates/issues/3355553.
$this->setInstallerPaths([], $project_root);
$active_manipulator = new ActiveFixtureManipulator(); $active_manipulator = new ActiveFixtureManipulator();
$stage_manipulator = $this->getStageFixtureManipulator(); $stage_manipulator = $this->getStageFixtureManipulator();
......
...@@ -45,6 +45,9 @@ trait ComposerInstallersTrait { ...@@ -45,6 +45,9 @@ trait ComposerInstallersTrait {
->addConfig(['allow-plugins.composer/installers' => TRUE]) ->addConfig(['allow-plugins.composer/installers' => TRUE])
->commitChanges($dir); ->commitChanges($dir);
(new Process(['composer', 'require', 'composer/installers:@dev', $working_dir_option]))->mustRun(); (new Process(['composer', 'require', 'composer/installers:@dev', $working_dir_option]))->mustRun();
// Use the default installer paths for Drupal core and extensions.
$this->setInstallerPaths([], $dir);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment