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"
|
"version": "v2.8.7"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"packagist.org": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--RUN--
|
--RUN--
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue