You are here

public function CardCodeTest::testGoodCodeValidation in Creditfield Form Element 8

@covers ::numberIsValid @dataProvider providerValidCardCodeNumbers

File

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

Class

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

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

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