You are here

function Braintree_CustomerTest::testCreateWithValidUTF8Bytes in Commerce Braintree 7

File

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

Class

Braintree_CustomerTest

Code

function testCreateWithValidUTF8Bytes() {
  $result = Braintree_Customer::create(array(
    'firstName' => "José",
  ));
  $this
    ->assertEquals(true, $result->success);
  $customer = $result->customer;
  $this
    ->assertEquals("José", $customer->firstName);
}