public function testCreateFromArray(array
$data, array
$expected =
[]): void
{ $data +=
$this->
getValidData();
$expected +=
$data;
// If not set provide default values that match ::getValidData().
$expected +=
[ 'is_published' => TRUE,
'is_unsupported' => TRUE,
'is_security_release' => TRUE,
'is_insecure' => TRUE,
];
$release = ProjectRelease::
createFromArray($data);