updateNoValidate() public static method

public static updateNoValidate ( $token, $attributes )
コード例 #1
0
 public function testUpdateNoValidate_throwsIfInvalid()
 {
     $customer = Braintree\Customer::createNoValidate();
     $creditCard = Braintree\CreditCard::createNoValidate(array('customerId' => $customer->id, 'cardholderName' => 'Old Cardholder', 'number' => '5105105105105100', 'expirationDate' => '05/12'));
     $this->setExpectedException('Braintree\\Exception\\ValidationsFailed');
     Braintree\CreditCard::updateNoValidate($creditCard->token, array('number' => 'invalid'));
 }