You are here

public function CardCodeTest::providerInvalidCardCodeNumbers in Creditfield Form Element 8

Data provider of valid test codes. 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/CardCodeTest.php, line 48

Class

CardCodeTest
@coversDefaultClass \Drupal\creditfield\Element\CardCode @group creditfield

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

public function providerInvalidCardCodeNumbers() {
  return [
    [
      '1.1',
    ],
    [
      '4af',
    ],
    [
      '8724372',
    ],
    [
      '3',
    ],
    [
      '-134',
    ],
    [
      '',
    ],
  ];
}