You are here

public function CardNumberTest::testGoodNumberValidation in Creditfield Form Element 8

@covers ::numberIsValid @dataProvider providerValidCardNumbers

File

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

Class

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

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

public function testGoodNumberValidation($number) {
  $this
    ->assertTrue(CardNumber::numberIsValid($number), 'Number "' . $number . '" should have passed validation, but did not.');
}