summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDave Long <dave@longwaveconsulting.com>2025-05-02 23:56:29 +0100
committerDave Long <dave@longwaveconsulting.com>2025-05-02 23:56:29 +0100
commit2ffe57e4fea6ea0ee20586d429d169d3e0cd45b4 (patch)
tree11c97eae80778608a489e89d37f9216b8713759c
parent3958ddc87b269d40cf9be995ab06bd5f4ace70c1 (diff)
downloaddrupal-2ffe57e4fea6ea0ee20586d429d169d3e0cd45b4.tar.gz
drupal-2ffe57e4fea6ea0ee20586d429d169d3e0cd45b4.zip
Issue #3519381 by mstrelan: Unskip ScaffoldUpgradeTest
-rw-r--r--core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php
index 381872916b4..accd108bfec 100644
--- a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php
+++ b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php
@@ -54,10 +54,6 @@ class ScaffoldUpgradeTest extends TestCase {
* Tests upgrading the Composer Scaffold plugin.
*/
public function testScaffoldUpgrade(): void {
- $composerVersionLine = exec('composer --version');
- if (str_contains($composerVersionLine, 'Composer version 2')) {
- $this->markTestSkipped('We cannot run the scaffold upgrade test with Composer 2 until we have a stable version of drupal/core-composer-scaffold to start from that we can install with Composer 2.x.');
- }
$this->fixturesDir = $this->fixtures->tmpDir($this->name());
$replacements = ['SYMLINK' => 'false', 'PROJECT_ROOT' => $this->fixtures->projectRoot()];
$this->fixtures->cloneFixtureProjects($this->fixturesDir, $replacements);
@@ -73,8 +69,9 @@ class ScaffoldUpgradeTest extends TestCase {
// Packagist is disabled in the fixture; we bring it back by removing the
// line that disables it.
$this->mustExec("composer config --unset repositories.packagist.org", $sut);
- $stdout = $this->mustExec("composer require --no-ansi drupal/core-composer-scaffold:8.8.0 --no-plugins 2>&1", $sut);
- $this->assertStringContainsString(" - Installing drupal/core-composer-scaffold (8.8.0):", $stdout);
+ $this->mustExec("composer config --unset repositories.composer-scaffold", $sut);
+ $stdout = $this->mustExec("composer require --no-ansi drupal/core-composer-scaffold:9.5.0 --no-plugins 2>&1", $sut);
+ $this->assertStringContainsString(" - Installing drupal/core-composer-scaffold (9.5.0):", $stdout);
// We can't force the path repo to re-install over the stable version
// without removing it, and removing it masks the bugs we are testing for.