You are here

function Braintree_AddressTest::testCreateNoValidate_withValidationErrors in Commerce Braintree 7

File

braintree_php/tests/integration/AddressTest.php, line 90

Class

Braintree_AddressTest

Code

function testCreateNoValidate_withValidationErrors() {
  $customer = Braintree_Customer::createNoValidate();
  $this
    ->setExpectedException('Braintree_Exception_ValidationsFailed');
  Braintree_Address::createNoValidate(array(
    'customerId' => $customer->id,
    'countryName' => 'Invalid States of America',
  ));
}