You are here

function Braintree_CreditCardTest::testCreateNoValidate_throwsIfValidationsFail in Commerce Braintree 7

File

braintree_php/tests/integration/CreditCardTest.php, line 224

Class

Braintree_CreditCardTest

Code

function testCreateNoValidate_throwsIfValidationsFail() {
  $this
    ->setExpectedException('Braintree_Exception_ValidationsFailed');
  $customer = Braintree_Customer::createNoValidate();
  Braintree_CreditCard::createNoValidate(array(
    'expirationDate' => 'invalid',
  ));
}