function Braintree_SubscriptionTest::testCreate_billingDayOfMonthIsInheritedFromPlan in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ SubscriptionTest.php, line 202
Class
Code
function testCreate_billingDayOfMonthIsInheritedFromPlan() {
$creditCard = Braintree_SubscriptionTestHelper::createCreditCard();
$plan = Braintree_SubscriptionTestHelper::billingDayOfMonthPlan();
$result = Braintree_Subscription::create(array(
'paymentMethodToken' => $creditCard->token,
'planId' => $plan['id'],
));
$subscription = $result->subscription;
$this
->assertEquals(5, $subscription->billingDayOfMonth);
}