function Braintree_AddressTest::testCreateNoValidate_withValidationErrors in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ AddressTest.php, line 90
Class
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',
));
}