function Braintree_CustomerTest::testDelete_deletesTheCustomer in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ CustomerTest.php, line 335
Class
Code
function testDelete_deletesTheCustomer() {
$result = Braintree_Customer::create(array());
$this
->assertEquals(true, $result->success);
Braintree_Customer::find($result->customer->id);
Braintree_Customer::delete($result->customer->id);
$this
->setExpectedException('Braintree_Exception_NotFound');
Braintree_Customer::find($result->customer->id);
}