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