function Braintree_TransactionTest::testSubmitForSettlementNoValidate_whenValidWithAmount in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ TransactionTest.php, line 664
Class
Code
function testSubmitForSettlementNoValidate_whenValidWithAmount() {
$transaction = Braintree_Transaction::saleNoValidate(array(
'amount' => '100.00',
'creditCard' => array(
'number' => '5105105105105100',
'expirationDate' => '05/12',
),
));
$this
->assertEquals(Braintree_Transaction::AUTHORIZED, $transaction->status);
$submittedTransaction = Braintree_Transaction::submitForSettlementNoValidate($transaction->id, '99.00');
$this
->assertEquals(Braintree_Transaction::SUBMITTED_FOR_SETTLEMENT, $submittedTransaction->status);
$this
->assertEquals('99.00', $submittedTransaction->amount);
}