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