You are here

function Braintree_CustomerTest::testCreate_withCustomFields in Commerce Braintree 7

File

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

Class

Braintree_CustomerTest

Code

function testCreate_withCustomFields() {
  $result = Braintree_Customer::create(array(
    'firstName' => 'Mike',
    'customFields' => array(
      'store_me' => 'some custom value',
    ),
  ));
  $this
    ->assertEquals(true, $result->success);
  $customFields = $result->customer->customFields;
  $this
    ->assertEquals('some custom value', $customFields['store_me']);
}