You are here

public function CardExpirationTest::testBadDateValidation in Creditfield Form Element 8

@covers ::dateIsValid @dataProvider providerInvalidCardExpirationDate

File

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

Class

CardExpirationTest
@coversDefaultClass \Drupal\creditfield\Element\CardExpiration @group creditfield

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

public function testBadDateValidation($value) {
  $this
    ->assertFalse(CardExpiration::dateIsValid($value), 'Date "' . $value . '" should not have passed validation, but did.');
}