You are here

function Braintree_CustomerTest::testCreate_blankCustomer in Commerce Braintree 7

File

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

Class

Braintree_CustomerTest

Code

function testCreate_blankCustomer() {
  $result = Braintree_Customer::create();
  $this
    ->assertEquals(true, $result->success);
  $this
    ->assertNotNull($result->customer->id);
  $result = Braintree_Customer::create(array());
  $this
    ->assertEquals(true, $result->success);
  $this
    ->assertNotNull($result->customer->id);
}