You are here

public function CardExpirationTest::testGoodDateValidation in Creditfield Form Element 8

@covers ::dateIsValid @dataProvider providerValidCardExpirationDate

File

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

Class

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

Namespace

Drupal\Tests\creditfield\Unit\Element

Code

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