You are here

static function Braintree_SubscriptionTestHelper::addOnDiscountPlan in Commerce Braintree 7

9 calls to Braintree_SubscriptionTestHelper::addOnDiscountPlan()
Braintree_SubscriptionTest::testCreate_allowsAddingNewAddOnsAndDiscounts in braintree_php/tests/integration/SubscriptionTest.php
Braintree_SubscriptionTest::testCreate_allowsOverridingInheritedAddOnsAndDiscounts in braintree_php/tests/integration/SubscriptionTest.php
Braintree_SubscriptionTest::testCreate_allowsRemovalOfInheritedAddOnsAndDiscounts in braintree_php/tests/integration/SubscriptionTest.php
Braintree_SubscriptionTest::testCreate_doesNotInheritAddOnsAndDiscountsWhenDoNotInheritAddOnsOrDiscountsIsSet in braintree_php/tests/integration/SubscriptionTest.php
Braintree_SubscriptionTest::testCreate_inheritsAddOnsAndDiscountsFromPlanByDefault in braintree_php/tests/integration/SubscriptionTest.php

... See full list

File

braintree_php/tests/integration/SubscriptionTestHelper.php, line 6

Class

Braintree_SubscriptionTestHelper

Code

static function addOnDiscountPlan() {
  return array(
    'description' => "Plan for integration tests -- with add-ons and discounts",
    'id' => "integration_plan_with_add_ons_and_discounts",
    'price' => '9.99',
    'trial_period' => true,
    'trial_duration' => 2,
    'trial_duration_unit' => 'day',
  );
}