Subscription

Test report

  1. EDD subscription loop config

      exists as loop type edd_subscription
      has property "name"
      has property "title"
      has property "category"
      has property "description"
      has property "query_args"
      has property "fields"

  2. Subscription loop type

      can create loop type edd_subscription
      returns subscriptions from method get_items()
      subscription is an instance of EDD_Subscription

  3. Subscription loop item

      loop has next item
      loops every item
      loop can be reset
      has current item

  4. Subscription fields

      Retrieve renewal payments for a subscription. Returns a loop.
      Subscription ID
      Customer ID
      Period
      initial_amount
      initial_tax_rate
      initial_tax
      recurring_amount
      recurring_tax_rate
      recurring_tax
      bill_times
      parent_payment_id
      product_id
      price_id
      created
      expiration
      trial_period
      profile_id
      gateway
      Returns the number of times the subscription has been billed
      Gets the lifetime value for the subscription
      Retrieves the transaction ID from the subscription
      Determines if subscription is active
      Determines if subscription is expired
      Retrieves the subscription status
      Retrieves the subscription status label
      Determines if subscription can be cancelled
      Retrieves the URL to cancel subscription
      Determines if subscription can be manually renewed
      Retrieves the URL to renew a subscription
      Determines if subscription can have their payment method updated
      Retrieves the URL to update subscription
      Determines if subscription can be reactivated
      Retrieves the URL to reactivate subscription
      Determines if subscription can be retried when failing
      Retrieves the URL to retry a failing subscription

  5. Subscription query parameters

  6. Subscription subloops

      child payments returns a Loop
      returns child payments correctly

All 6 tests passed