You are here

function Braintree_CreditCardTest::testUpdateSignature in Commerce Braintree 7

File

braintree_php/tests/unit/CreditCardTest.php, line 61

Class

Braintree_CreditCardTest

Code

function testUpdateSignature() {
  $expected = array(
    'billingAddressId',
    'cardholderName',
    'cvv',
    'number',
    'expirationDate',
    'expirationMonth',
    'expirationYear',
    'token',
    array(
      'options' => array(
        'makeDefault',
        'verificationMerchantAccountId',
        'verifyCard',
      ),
    ),
    array(
      'billingAddress' => array(
        'firstName',
        'lastName',
        'company',
        'countryCodeAlpha2',
        'countryCodeAlpha3',
        'countryCodeNumeric',
        'countryName',
        'extendedAddress',
        'locality',
        'region',
        'postalCode',
        'streetAddress',
        array(
          'options' => array(
            'updateExisting',
          ),
        ),
      ),
    ),
  );
  $this
    ->assertEquals($expected, Braintree_CreditCard::UpdateSignature());
}