Loading core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php +10 −0 Original line number Diff line number Diff line Loading @@ -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' => [ Loading core/tests/Drupal/BuildTests/Composer/Component/ComponentsTaggedReleaseTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'); Loading Loading
core/modules/package_manager/tests/src/Kernel/PhpTufValidatorTest.php +10 −0 Original line number Diff line number Diff line Loading @@ -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' => [ Loading
core/tests/Drupal/BuildTests/Composer/Component/ComponentsTaggedReleaseTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -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'); Loading