function Braintree_TransactionTest::testCredit_withoutMerchantAccountIdFallsBackToDefault in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ TransactionTest.php, line 603
Class
Code
function testCredit_withoutMerchantAccountIdFallsBackToDefault() {
$result = Braintree_Transaction::credit(array(
'amount' => '100.00',
'creditCard' => array(
'number' => '5105105105105100',
'expirationDate' => '05/12',
),
));
$this
->assertTrue($result->success);
$transaction = $result->transaction;
$this
->assertEquals(Braintree_TestHelper::defaultMerchantAccountId(), $transaction->merchantAccountId);
}