function Braintree_AddressTest::testDelete in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ AddressTest.php, line 100
Class
Code
function testDelete() {
$customer = Braintree_Customer::createNoValidate();
$address = Braintree_Address::createNoValidate(array(
'customerId' => $customer->id,
'streetAddress' => '1 E Main St',
));
Braintree_Address::find($customer->id, $address->id);
Braintree_Address::delete($customer->id, $address->id);
$this
->setExpectedException('Braintree_Exception_NotFound');
Braintree_Address::find($customer->id, $address->id);
}