function Braintree_CreditCardTest::testCreateNoValidate_throwsIfValidationsFail in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ CreditCardTest.php, line 224
Class
Code
function testCreateNoValidate_throwsIfValidationsFail() {
$this
->setExpectedException('Braintree_Exception_ValidationsFailed');
$customer = Braintree_Customer::createNoValidate();
Braintree_CreditCard::createNoValidate(array(
'expirationDate' => 'invalid',
));
}