You are here

function Braintree_AddressTest::testIsEqual in Commerce Braintree 7

File

braintree_php/tests/unit/AddressTest.php, line 13

Class

Braintree_AddressTest

Code

function testIsEqual() {
  $first = Braintree_Address::factory(array(
    'customerId' => 'c1',
    'id' => 'a1',
  ));
  $second = Braintree_Address::factory(array(
    'customerId' => 'c1',
    'id' => 'a1',
  ));
  $this
    ->assertTrue($first
    ->isEqual($second));
  $this
    ->assertTrue($second
    ->isEqual($first));
}