Fix test issues
parent
1fa6f4c83c
commit
212fbc516e
|
@ -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--
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue