public function SecurityAdvisoryTest::providerCreateFromArrayInvalidField in Drupal 9
Data provider for testCreateFromArrayInvalidField().
File
- core/
modules/ system/ tests/ src/ Unit/ SecurityAdvisories/ SecurityAdvisoryTest.php, line 149
Class
- SecurityAdvisoryTest
- @coversDefaultClass \Drupal\system\SecurityAdvisories\SecurityAdvisory
Namespace
Drupal\Tests\system\Unit\SecurityAdvisoriesCode
public function providerCreateFromArrayInvalidField() : array {
return [
'title' => [
'title',
'This value should be of type string.',
],
'link' => [
'link',
'This value should be of type string.',
],
'project' => [
'project',
'This value should be of type string.',
],
'type' => [
'type',
'This value should be of type string.',
],
'is_psa' => [
'is_psa',
'The value you selected is not a valid choice.',
],
'insecure' => [
'insecure',
'This value should be of type array.',
],
];
}