public function CreditCardTest::testsValidateSecurityCode in Commerce Core 8.2
@covers ::validateSecurityCode @dataProvider securityCodeProvider
File
- modules/
payment/ tests/ src/ Unit/ CreditCardTest.php, line 88
Class
- CreditCardTest
- @coversDefaultClass \Drupal\commerce_payment\CreditCard @group commerce
Namespace
Drupal\Tests\commerce_payment\UnitCode
public function testsValidateSecurityCode($security_code, $type, $valid) {
$type = CreditCard::getType($type);
$result = CreditCard::validateSecurityCode($security_code, $type);
$this
->assertEquals($valid, $result);
}