function Braintree_CreditCardTest::testExpiringBetween_parsesCreditCardDetailsUnderTransactionsCorrectly in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ CreditCardTest.php, line 552
Class
Code
function testExpiringBetween_parsesCreditCardDetailsUnderTransactionsCorrectly() {
$collection = Braintree_CreditCard::expiringBetween(mktime(0, 0, 0, 1, 1, 2010), mktime(23, 59, 59, 12, 31, 2010));
$this
->assertTrue($collection
->maximumCount() > 1);
foreach ($collection as $creditCard) {
foreach ($creditCard->subscriptions as $subscription) {
foreach ($subscription->transactions as $transaction) {
$this
->assertNotNull($transaction->creditCardDetails->expirationMonth);
}
}
}
}