Commit ae0bb9c5 authored by catch's avatar catch
Browse files

fix: #3557585 Update to Composer 2.9.2

By: alexpott
By: cilefen
By: longwave
By: andypost
By: godotislate
(cherry picked from commit 7c692384)
parent 22d10992
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -41,6 +41,16 @@ protected function setUp(): void {
    // PHP-TUF must be enabled for this test to run.
    $this->setSetting('package_manager_bypass_tuf', FALSE);

    // audit.block-insecure is only available in Composer 2.9.2 onwards.
    try {
      (new ActiveFixtureManipulator())
        ->addConfig(['audit.block-insecure' => FALSE])
        ->commitChanges();
    }
    catch (\RuntimeException $e) {
      $this->assertStringContainsString('Setting audit.block-insecure does not exist', $e->getMessage());
    }

    (new ActiveFixtureManipulator())
      ->addConfig([
        'repositories.drupal' => [
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public function testReleaseTagging(string $tag, string $constraint): void {

    // Emulate the release script.
    // @see https://github.com/xjm/drupal_core_release/blob/main/tag.sh
    $this->executeCommand("COMPOSER_ROOT_VERSION=\"$tag\" composer update drupal/core*");
    $this->executeCommand("COMPOSER_ROOT_VERSION=\"$tag\" COMPOSER_NO_SECURITY_BLOCKING=1 composer update drupal/core*");
    $this->assertCommandSuccessful();
    $this->assertErrorOutputContains('generateComponentPackages');