You are here

public function CardNumberTest::providerInvalidCardNumbers in Creditfield Form Element 8

Data provider of valid test numbers. Includes variants that should fail, like negative numbers, alphanumeric characters, values that are too short, or too long.

Return value

array

File

tests/src/Unit/Element/CardNumberTest.php, line 57

Class

CardNumberTest
@coversDefaultClass \Drupal\creditfield\Element\CardNumber @group creditfield

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

public function providerInvalidCardNumbers() {
  return [
    [
      '424224242',
    ],
    [
      '4012888888881881445353',
    ],
    [
      '-4242424242424242',
    ],
    [
      '40128888.10',
    ],
    [
      '4242aBcD24244242',
    ],
    [
      'ABCDEFGHIJKL',
    ],
    [
      '1234828282828210',
    ],
    [
      '',
    ],
  ];
}