function Braintree_SubscriptionTest::testUpdate_createsProratedTransactionWhenFlagIsPassedFalse in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ SubscriptionTest.php, line 690
Class
Code
function testUpdate_createsProratedTransactionWhenFlagIsPassedFalse() {
$subscription = Braintree_SubscriptionTestHelper::createSubscription();
$result = Braintree_Subscription::update($subscription->id, array(
'price' => $subscription->price + 1,
'options' => array(
'prorateCharges' => false,
),
));
$this
->assertTrue($result->success);
$this
->assertEquals(sizeof($subscription->transactions), sizeof($result->subscription->transactions));
}