Skip to content
Snippets Groups Projects
Verified Commit 2ffe57e4 authored by Dave Long's avatar Dave Long
Browse files

Issue #3519381 by mstrelan: Unskip ScaffoldUpgradeTest

parent 3958ddc8
No related branches found
No related tags found
3 merge requests!5423Draft: Resolve #3329907 "Test2",!3478Issue #3337882: Deleted menus are not removed from content type config,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #487762 passed with warnings
Pipeline: drupal

#487763

    ...@@ -54,10 +54,6 @@ protected function setUp(): void { ...@@ -54,10 +54,6 @@ protected function setUp(): void {
    * Tests upgrading the Composer Scaffold plugin. * Tests upgrading the Composer Scaffold plugin.
    */ */
    public function testScaffoldUpgrade(): void { 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()); $this->fixturesDir = $this->fixtures->tmpDir($this->name());
    $replacements = ['SYMLINK' => 'false', 'PROJECT_ROOT' => $this->fixtures->projectRoot()]; $replacements = ['SYMLINK' => 'false', 'PROJECT_ROOT' => $this->fixtures->projectRoot()];
    $this->fixtures->cloneFixtureProjects($this->fixturesDir, $replacements); $this->fixtures->cloneFixtureProjects($this->fixturesDir, $replacements);
    ...@@ -73,8 +69,9 @@ public function testScaffoldUpgrade(): void { ...@@ -73,8 +69,9 @@ public function testScaffoldUpgrade(): void {
    // Packagist is disabled in the fixture; we bring it back by removing the // Packagist is disabled in the fixture; we bring it back by removing the
    // line that disables it. // line that disables it.
    $this->mustExec("composer config --unset repositories.packagist.org", $sut); $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->mustExec("composer config --unset repositories.composer-scaffold", $sut);
    $this->assertStringContainsString(" - Installing drupal/core-composer-scaffold (8.8.0):", $stdout); $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 // 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. // without removing it, and removing it masks the bugs we are testing for.
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment