You are here

public function CreditCardTest::testValidateExpirationDate in Commerce Core 8.2

@covers ::validateExpirationDate @dataProvider expirationDateProvider

File

modules/payment/tests/src/Unit/CreditCardTest.php, line 69

Class

CreditCardTest
@coversDefaultClass \Drupal\commerce_payment\CreditCard @group commerce

Namespace

Drupal\Tests\commerce_payment\Unit

Code

public function testValidateExpirationDate($month, $year, $valid) {
  $result = CreditCard::validateExpirationDate($month, $year);
  $this
    ->assertEquals($valid, $result);
}