Add more tests
Co-authored-by: Guilliam Xavier <guilliamxavier@users.noreply.github.com>pull/9782/head
parent
cc55b56dd7
commit
ac49e61931
|
@ -42,6 +42,9 @@ class ComposerSchemaTest extends TestCase
|
|||
$json = '{ }';
|
||||
$result = $this->check($json);
|
||||
$this->assertContains(array('property' => 'type', 'message' => 'The property type is required', 'constraint' => 'required'), $result);
|
||||
$this->assertContains(array('property' => 'name', 'message' => 'The property name is required', 'constraint' => 'required'), $result);
|
||||
$this->assertContains(array('property' => 'description', 'message' => 'The property description is required', 'constraint' => 'required'), $result);
|
||||
$this->assertContains(array('property' => '', 'message' => 'Failed to match exactly one schema', 'constraint' => 'oneOf'), $result);
|
||||
|
||||
$json = '{ "name": "vendor/package" }';
|
||||
$this->assertEquals(array(
|
||||
|
|
Loading…
Reference in New Issue