You are here

public function PhoneFieldValidationRuleTest::phoneNumbersProviderInvalid in Field Validation 8

Data provider with invalid phone numbers by country.

Return value

array Returns dataset.

File

tests/src/Kernel/Plugin/FieldValidationRule/PhoneFieldValidationRuleTest.php, line 236

Class

PhoneFieldValidationRuleTest
Tests PhoneFieldValidationRule.

Namespace

Drupal\Tests\field_validation\Kernel\Plugin\FieldValidationRule

Code

public function phoneNumbersProviderInvalid() {
  return [
    'Fr-1' => [
      'fr',
      '+33495035197a',
    ],
    'Be-1' => [
      'be',
      '069346426a',
    ],
    'It-1' => [
      'it',
      '+39368775417a',
    ],
    'El/Gr-1' => [
      'el',
      '+302589166966a',
    ],
    'Ch-1' => [
      'ch',
      '+41366802896a',
    ],
    'Us/Ca-1' => [
      'ca',
      '160a48123a924417',
    ],
    'Cr-1' => [
      'cr',
      '00-61a-13-31-23a',
    ],
    'Pa-1' => [
      'pa',
      '+666 13a2 1234a',
    ],
    'Ru-1' => [
      'ru',
      '+1-1234-123-12',
    ],
    'Es-1' => [
      'es',
      '090-1223564a',
    ],
    'Cz-1' => [
      'cs',
      '00420 123 123 123a',
    ],
    'Pl-mobile-1' => [
      'hu',
      '+071a23123123',
    ],
    'Pl-1' => [
      'pl',
      '+48 123-123-123a',
    ],
    'Nl-1' => [
      'nl',
      '06-599a89008a',
    ],
    'Se-1' => [
      'se',
      '+46 55 12 12 12a',
    ],
    'Za-1' => [
      'za',
      '+27 12 123 1234a',
    ],
    'Br-1' => [
      'br',
      '+55 012 100 1234a',
    ],
    'Cn-1' => [
      'cn',
      '+86 12345678911a',
    ],
    'Ph-1' => [
      'ph',
      'a63 2835556870a',
    ],
    'Sg-1' => [
      'sg',
      '+65 61234567a',
    ],
    'Jo-1' => [
      'jo',
      '+962-781234567a',
    ],
    'Pk-1' => [
      'pk',
      '+92-(01234)-1234a',
    ],
    'In-1' => [
      'in',
      '92 123456789a',
    ],
  ];
}