delete() public static method

public static delete ( $token )
コード例 #1
0
 public function testDelete_deletesThePaymentMethod()
 {
     $customer = Braintree\Customer::createNoValidate(array());
     $creditCard = Braintree\CreditCard::createNoValidate(array('customerId' => $customer->id, 'number' => '5105105105105100', 'expirationDate' => '05/12'));
     Braintree\CreditCard::find($creditCard->token);
     Braintree\CreditCard::delete($creditCard->token);
     $this->setExpectedException('Braintree\\Exception\\NotFound');
     Braintree\CreditCard::find($creditCard->token);
 }