Fixes #4610
parent
f2b0e2284a
commit
320533bcf9
|
@ -442,6 +442,10 @@
|
|||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"abandoned": {
|
||||
"type": ["boolean"],
|
||||
"description": "Indicates whether this package has been abandoned. Defaults to false."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,12 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
|
|||
), $this->check($json));
|
||||
}
|
||||
|
||||
public function testOptionalAbandonedProperty()
|
||||
{
|
||||
$json = '{"name": "name", "description": "description", "abandoned": true}';
|
||||
$this->assertTrue($this->check($json));
|
||||
}
|
||||
|
||||
public function testMinimumStabilityValues()
|
||||
{
|
||||
$json = '{ "name": "vendor/package", "description": "generic description", "minimum-stability": "" }';
|
||||
|
|
Loading…
Reference in New Issue