PHP Class Test\Integration\SubscriptionTest

Inheritance: extends Test\Setup
Afficher le fichier Open project: braintree/braintree_php

Méthodes publiques

Méthode Description
testCancel_returnsErrorIfCancelingCanceledSubscription ( )
testCancel_returnsSuccessIfCanceled ( )
testCancel_throwsErrorIfRecordNotFound ( )
testCreate_allowsAddingNewAddOnsAndDiscounts ( )
testCreate_allowsOverridingInheritedAddOnsAndDiscounts ( )
testCreate_allowsRemovalOfInheritedAddOnsAndDiscounts ( )
testCreate_alterPlanTrialPeriod ( )
testCreate_billingDayOfMonthCanBeOverriden ( )
testCreate_billingDayOfMonthCanBeOverridenWithStartImmediately ( )
testCreate_billingDayOfMonthIsInheritedFromPlan ( )
testCreate_canSetTheId ( )
testCreate_canSetTheMerchantAccountId ( )
testCreate_createsATransactionIfNoTrialPeriod ( )
testCreate_doesNotAcceptBadAttributes ( )
testCreate_doesNotCreateTransactionIfTrialPeriod ( )
testCreate_doesNotInheritAddOnsAndDiscountsWhenDoNotInheritAddOnsOrDiscountsIsSet ( )
testCreate_firstBillingDateCanBeSet ( )
testCreate_firstBillingDateInThePast ( )
testCreate_fromPayPalACcount ( )
testCreate_fromPayPalACcountDoesNotWorkWithFutureNonce ( )
testCreate_fromPayPalACcountDoesNotWorkWithOnetimeNonce ( )
testCreate_inheritsAddOnsAndDiscountsFromPlanByDefault ( )
testCreate_numberOfBillingCyclesCanBeOverridden ( )
testCreate_numberOfBillingCyclesCanBeOverriddenToNeverExpire ( )
testCreate_priceCanBeOverriden ( )
testCreate_properlyParsesValidationErrorsForArrays ( )
testCreate_removePlanTrialPeriod ( )
testCreate_returnsATransactionWithSubscriptionBillingPeriod ( )
testCreate_returnsTransactionWhenTransactionFails ( )
testCreate_trialPeriodDefaultsToPlanWithoutTrial ( )
testCreate_trialPeriondDefaultsToPlanWithTrial ( )
testCreate_whenSuccessful ( )
testCreate_withDescriptor ( )
testCreate_withDescriptorValidation ( )
testCreate_withPaymentMethodNonce ( )
testFind ( )
testFind_throwsIfNotFound ( )
testGatewayCreate_whenSuccessful ( )
testRetryCharge_WithAmount ( )
testRetryCharge_WithoutAmount ( )
testUpdate_DoesNotUpdateSubscriptionWhenProrationTransactionFailsAndRevertIsTrue ( )
testUpdate_UpdatesSubscriptionWhenProrationTransactionFailsAndRevertIsFalse ( )
testUpdate_canAddAndRemoveAddOnsAndDiscounts ( )
testUpdate_canReplaceEntireSetOfAddonsAndDiscounts ( )
testUpdate_canUpdateAddOnsAndDiscounts ( )
testUpdate_canUpdateNumberOfBillingCycles ( )
testUpdate_canUpdateNumberOfBillingCyclesToNeverExpire ( )
testUpdate_canUpdatePaymentMethodToken ( )
testUpdate_canUpdatePaymentMethodWithPaymentMethodNonce ( )
testUpdate_cannotUpdateCanceledSubscription ( )
testUpdate_createsProratedTransactionWhenFlagIsPassedFalse ( )
testUpdate_createsProratedTransactionWhenFlagIsPassedTrue ( )
testUpdate_createsTransactionOnProration ( )
testUpdate_doesNotAcceptBadAttributes ( )
testUpdate_invalidSubscriptionId ( )
testUpdate_validationErrors ( )
testUpdate_whenSuccessful ( )
testUpdate_withDescriptor ( )
testValidationErrors_hasValidationErrorsOnId ( )

Method Details

testCancel_returnsErrorIfCancelingCanceledSubscription() public méthode

testCancel_returnsSuccessIfCanceled() public méthode

testCancel_throwsErrorIfRecordNotFound() public méthode

testCreate_allowsAddingNewAddOnsAndDiscounts() public méthode

testCreate_allowsOverridingInheritedAddOnsAndDiscounts() public méthode

testCreate_allowsRemovalOfInheritedAddOnsAndDiscounts() public méthode

testCreate_alterPlanTrialPeriod() public méthode

testCreate_billingDayOfMonthCanBeOverriden() public méthode

testCreate_billingDayOfMonthCanBeOverridenWithStartImmediately() public méthode

testCreate_billingDayOfMonthIsInheritedFromPlan() public méthode

testCreate_canSetTheId() public méthode

testCreate_canSetTheMerchantAccountId() public méthode

testCreate_createsATransactionIfNoTrialPeriod() public méthode

testCreate_doesNotAcceptBadAttributes() public méthode

testCreate_doesNotCreateTransactionIfTrialPeriod() public méthode

testCreate_doesNotInheritAddOnsAndDiscountsWhenDoNotInheritAddOnsOrDiscountsIsSet() public méthode

testCreate_firstBillingDateCanBeSet() public méthode

testCreate_firstBillingDateInThePast() public méthode

testCreate_fromPayPalACcount() public méthode

testCreate_fromPayPalACcountDoesNotWorkWithFutureNonce() public méthode

testCreate_fromPayPalACcountDoesNotWorkWithOnetimeNonce() public méthode

testCreate_inheritsAddOnsAndDiscountsFromPlanByDefault() public méthode

testCreate_numberOfBillingCyclesCanBeOverridden() public méthode

testCreate_numberOfBillingCyclesCanBeOverriddenToNeverExpire() public méthode

testCreate_priceCanBeOverriden() public méthode

testCreate_properlyParsesValidationErrorsForArrays() public méthode

testCreate_removePlanTrialPeriod() public méthode

testCreate_returnsATransactionWithSubscriptionBillingPeriod() public méthode

testCreate_returnsTransactionWhenTransactionFails() public méthode

testCreate_trialPeriodDefaultsToPlanWithoutTrial() public méthode

testCreate_trialPeriondDefaultsToPlanWithTrial() public méthode

testCreate_whenSuccessful() public méthode

testCreate_withDescriptor() public méthode

testCreate_withDescriptorValidation() public méthode

testCreate_withPaymentMethodNonce() public méthode

testFind() public méthode

public testFind ( )

testFind_throwsIfNotFound() public méthode

testGatewayCreate_whenSuccessful() public méthode

testRetryCharge_WithAmount() public méthode

testRetryCharge_WithoutAmount() public méthode

testUpdate_DoesNotUpdateSubscriptionWhenProrationTransactionFailsAndRevertIsTrue() public méthode

testUpdate_UpdatesSubscriptionWhenProrationTransactionFailsAndRevertIsFalse() public méthode

testUpdate_canAddAndRemoveAddOnsAndDiscounts() public méthode

testUpdate_canReplaceEntireSetOfAddonsAndDiscounts() public méthode

testUpdate_canUpdateAddOnsAndDiscounts() public méthode

testUpdate_canUpdateNumberOfBillingCycles() public méthode

testUpdate_canUpdateNumberOfBillingCyclesToNeverExpire() public méthode

testUpdate_canUpdatePaymentMethodToken() public méthode

testUpdate_canUpdatePaymentMethodWithPaymentMethodNonce() public méthode

testUpdate_cannotUpdateCanceledSubscription() public méthode

testUpdate_createsProratedTransactionWhenFlagIsPassedFalse() public méthode

testUpdate_createsProratedTransactionWhenFlagIsPassedTrue() public méthode

testUpdate_createsTransactionOnProration() public méthode

testUpdate_doesNotAcceptBadAttributes() public méthode

testUpdate_invalidSubscriptionId() public méthode

testUpdate_validationErrors() public méthode

testUpdate_whenSuccessful() public méthode

testUpdate_withDescriptor() public méthode

testValidationErrors_hasValidationErrorsOnId() public méthode