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"
}
]
},
"packagist.org": false
}
}
}
--RUN--

View File

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