You are here

function Braintree_CustomerTest::testUpdateSignature_doesNotAlterOptionsInCreditCardUpdateSignature in Commerce Braintree 7

File

braintree_php/tests/unit/CustomerTest.php, line 13

Class

Braintree_CustomerTest

Code

function testUpdateSignature_doesNotAlterOptionsInCreditCardUpdateSignature() {
  Braintree_Customer::updateSignature();
  foreach (Braintree_CreditCard::updateSignature() as $key => $value) {
    if (is_array($value) and array_key_exists('options', $value)) {
      $this
        ->assertEquals(array(
        'makeDefault',
        'verificationMerchantAccountId',
        'verifyCard',
      ), $value['options']);
    }
  }
}