public function IpFieldValidationRuleTest::ipMalformedAndEmptyProvider in Field Validation 8
Data provider for malformed and empty input.
Return value
array Returns the dataset.
File
- tests/
src/ Kernel/ Plugin/ FieldValidationRule/ IpFieldValidationRuleTest.php, line 225
Class
- IpFieldValidationRuleTest
- Tests IpFieldValidationRule.
Namespace
Drupal\Tests\field_validation\Kernel\Plugin\FieldValidationRuleCode
public function ipMalformedAndEmptyProvider() {
return [
[
'4',
],
[
'4_no_priv',
],
[
'4_no_res',
],
[
'4_public',
],
[
'6',
],
[
'6_no_priv',
],
[
'6_no_res',
],
[
'6_public',
],
[
'all',
],
[
'all_no_priv',
],
[
'all_no_res',
],
[
'all_public',
],
];
}