You are here

function Braintree_CustomerTest::testCreateNoValidate_throwsIfInvalid in Commerce Braintree 7

File

braintree_php/tests/integration/CustomerTest.php, line 329

Class

Braintree_CustomerTest

Code

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