function Braintree_AddressTest::testCreateNoValidate in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ AddressTest.php, line 64
Class
Code
function testCreateNoValidate() {
$customer = Braintree_Customer::createNoValidate();
$address = Braintree_Address::createNoValidate(array(
'customerId' => $customer->id,
'firstName' => 'Dan',
'lastName' => 'Smith',
'company' => 'Braintree',
'streetAddress' => '1 E Main St',
'extendedAddress' => 'Apt 1F',
'locality' => 'Chicago',
'region' => 'IL',
'postalCode' => '60622',
'countryName' => 'United States of America',
));
$this
->assertEquals('Dan', $address->firstName);
$this
->assertEquals('Smith', $address->lastName);
$this
->assertEquals('Braintree', $address->company);
$this
->assertEquals('1 E Main St', $address->streetAddress);
$this
->assertEquals('Apt 1F', $address->extendedAddress);
$this
->assertEquals('Chicago', $address->locality);
$this
->assertEquals('IL', $address->region);
$this
->assertEquals('60622', $address->postalCode);
$this
->assertEquals('United States of America', $address->countryName);
}