You are here

public function CardNumberTest::providerValidCardNumbers in Creditfield Form Element 8

Data provider of valid test numbers. Includes variants that should pass validation.

Return value

array

File

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

Class

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

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

public function providerValidCardNumbers() {
  return [
    [
      '4242424242424242',
    ],
    [
      '4012888888881881',
    ],
    [
      '4000056655665556',
    ],
    [
      '5555555555554444',
    ],
    [
      '5200828282828210',
    ],
    [
      '5105105105105100',
    ],
    [
      '378282246310005',
    ],
    [
      '371449635398431',
    ],
    [
      '6011111111111117',
    ],
    [
      '6011000990139424',
    ],
    [
      '30569309025904',
    ],
    [
      '38520000023237',
    ],
    [
      '3530111333300000',
    ],
    [
      '3566002020360505',
    ],
  ];
}