public function PhoneFieldValidationRuleTest::phoneNumbersProviderMalformed in Field Validation 8
Data provider for malformed and empty input.
Return value
array Returns dataset.
File
- tests/
src/ Kernel/ Plugin/ FieldValidationRule/ PhoneFieldValidationRuleTest.php, line 270
Class
- PhoneFieldValidationRuleTest
- Tests PhoneFieldValidationRule.
Namespace
Drupal\Tests\field_validation\Kernel\Plugin\FieldValidationRuleCode
public function phoneNumbersProviderMalformed() {
return [
[
'fr',
],
[
'be',
],
[
'it',
],
[
'el',
],
[
'ch',
],
[
'ca',
],
[
'pa',
],
[
'gb',
],
[
'ru',
],
[
'es',
],
[
'cs',
],
[
'hu',
],
[
'pl',
],
[
'nl',
],
[
'se',
],
[
'za',
],
[
'br',
],
[
'cl',
],
[
'cn',
],
[
'ph',
],
[
'sg',
],
[
'jo',
],
[
'pk',
],
[
'in',
],
[
'dk',
],
];
}