1
0
Fork 0

Fix test issues

pull/9035/head
Jordi Boggiano 2020-07-02 08:12:25 +02:00
parent 1fa6f4c83c
commit 212fbc516e
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 4 additions and 6 deletions

View File

@ -103,8 +103,7 @@ Solver Bug Exception caused by analyze on mutli conflict rule reported in GitHub
"version": "v2.8.7" "version": "v2.8.7"
} }
] ]
}, }
"packagist.org": false
} }
} }
--RUN-- --RUN--

View File

@ -40,10 +40,9 @@ class ComposerSchemaTest extends TestCase
public function testRequiredProperties() public function testRequiredProperties()
{ {
$json = '{ }'; $json = '{ }';
$this->assertEquals(array( $result = $this->check($json);
array('property' => 'name', 'message' => 'The property name is required', 'constraint' => 'required'), $this->assertContains(array('property' => 'name', 'message' => 'The property name is required', 'constraint' => 'required'), $result);
array('property' => 'description', 'message' => 'The property description is required', 'constraint' => 'required'), $this->assertContains(array('property' => 'description', 'message' => 'The property description is required', 'constraint' => 'required'), $result);
), $this->check($json));
$json = '{ "name": "vendor/package" }'; $json = '{ "name": "vendor/package" }';
$this->assertEquals(array( $this->assertEquals(array(