1
0
Fork 0

Add more tests

Co-authored-by: Guilliam Xavier <guilliamxavier@users.noreply.github.com>
pull/9782/head
Jordi Boggiano 2021-05-20 15:41:56 +02:00 committed by GitHub
parent cc55b56dd7
commit ac49e61931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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(