function Braintree_SubscriptionTest::testCreate_billingDayOfMonthCanBeOverridenWithStartImmediately in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ SubscriptionTest.php, line 227
Class
Code
function testCreate_billingDayOfMonthCanBeOverridenWithStartImmediately() {
$creditCard = Braintree_SubscriptionTestHelper::createCreditCard();
$plan = Braintree_SubscriptionTestHelper::billingDayOfMonthPlan();
$result = Braintree_Subscription::create(array(
'paymentMethodToken' => $creditCard->token,
'planId' => $plan['id'],
'options' => array(
'startImmediately' => true,
),
));
$subscription = $result->subscription;
$this
->assertEquals(1, sizeof($subscription->transactions));
}