public function SecurityAdvisoryTest::providerCreateFromArrayInvalidField in Drupal 10
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Unit/SecurityAdvisories/SecurityAdvisoryTest.php \Drupal\Tests\system\Unit\SecurityAdvisories\SecurityAdvisoryTest::providerCreateFromArrayInvalidField()
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.',
],
];
}