public function CardNumberTest::testBadNumberValidation in Creditfield Form Element 8
@covers ::numberIsValid @dataProvider providerInvalidCardNumbers
File
- tests/
src/ Unit/ Element/ CardNumberTest.php, line 26
Class
- CardNumberTest
- @coversDefaultClass \Drupal\creditfield\Element\CardNumber @group creditfield
Namespace
Drupal\Tests\creditfield\Unit\ElementCode
public function testBadNumberValidation($number) {
$this
->assertFalse(CardNumber::numberIsValid($number), 'Number "' . $number . '" should not have passed validation, but did.');
}