1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Validate licenses passed into init command (#12115)

Fixes #10838
This commit is contained in:
Jordi Boggiano 2024-09-19 17:07:28 +02:00 committed by GitHub
parent a5d0d73e00
commit 58905ffe4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -711,7 +711,7 @@ class InitCommandTest extends TestCase
'Mr. Test <test@example.org>', // Author
'stable', // Minimum stability
'library', // Type
'Custom License', // License
'AGPL-3.0-only', // License
'no', // Define dependencies
'no', // Define dev dependencies
'n', // Add PSR-4 autoload mapping
@ -726,7 +726,7 @@ class InitCommandTest extends TestCase
'name' => 'vendor/pkg',
'description' => 'my desciption',
'type' => 'library',
'license' => 'Custom License',
'license' => 'AGPL-3.0-only',
'authors' => [['name' => 'Mr. Test', 'email' => 'test@example.org']],
'minimum-stability' => 'stable',
'require' => [],