Discount

Test report

  1. EDD discount loop config

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

  2. Discount loop type

      can create loop type edd_discount
      returns discounts from method get_items()
      discount is an instance of EDD_Discount

  3. Discount loop item

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

  4. Discount fields

      Retrieve the downloads that are excluded from having this discount code applied. Returns a Loop.
      Retrieve the start date
      Retrieve the end date
      ID of post object
      Retrieve the name of the discount
      Retrieve the code used to apply the discount
      Retrieve the status of the discount
      Retrieves the status label of the discount
      Retrieve the type of discount
      Retrieve the amount of discount
      Retrieve the uses for the discount code
      Retrieve the maximum uses for the discount code
      Retrieve the minimum spend required for the discount to be satisfied
      Retrieve the usage limit per limit (if the discount can only be used once per customer)
      Retrieve the property determining if a discount is not global
      Product condition

  5. Discount subloops

All 5 tests passed