You are here

public function CardCodeTest::testBadCodeValidation in Creditfield Form Element 8

@covers ::numberIsValid @dataProvider providerInvalidCardCodeNumbers

File

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

Class

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

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

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