1
0
Fork 0

Fix tests

main
Jordi Boggiano 2024-12-11 11:39:34 +01:00
parent 8eedfd0ecb
commit 6e0cb6cae0
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View File

@ -146,7 +146,7 @@ EOT
if (\count($errors) > 0) {
$io->writeError('<error>' . $name . ' is invalid, the following errors/warnings were found:</error>');
} elseif (\count($publishErrors) > 0) {
} elseif (\count($publishErrors) > 0 && $checkPublish) {
$io->writeError('<info>' . $name . ' is valid for simple usage with Composer but has</info>');
$io->writeError('<info>strict errors that make it unable to be published as a package</info>');
$doPrintSchemaUrl = $printSchemaUrl;

View File

@ -142,14 +142,10 @@ OUTPUT
$publishDataStripped,
[ '--no-check-publish' => true],
<<<OUTPUT
./composer.json is valid for simple usage with Composer but has
strict errors that make it unable to be published as a package
./composer.json is valid, but with a few warnings
<warning>See https://getcomposer.org/doc/04-schema.md for details on the schema</warning>
<warning># General warnings</warning>
- No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
<warning># Publish warnings</warning>
- name : The property name is required
- description : The property description is required
OUTPUT
];
}