You are here

function Braintree_CustomerTest::testAllWithManyResults in Commerce Braintree 7

File

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

Class

Braintree_CustomerTest

Code

function testAllWithManyResults() {
  $collection = Braintree_Customer::all();
  $this
    ->assertTrue($collection
    ->maximumCount() > 1);
  $arr = array();
  foreach ($collection as $customer) {
    array_push($arr, $customer->id);
  }
  $unique_customer_ids = array_unique(array_values($arr));
  $this
    ->assertEquals($collection
    ->maximumCount(), count($unique_customer_ids));
}