All tests

Plugin

Test report

  1. Global function tangible_loops_for_edd

      exists
      returns an instance of the plugin

All 1 test passed

Cart

Test report

  1. EDD cart loop config

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

  2. Cart loop type

      can create loop type edd_cart
      returns carts from method get_items()
      cart item is an array

  3. Cart loop item

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

  4. Cart fields

      Product / Download id
      Cart options; contains keys `period`, `times`, `signup_fee` and `trial_period`
      Quantity

All 4 tests passed

Commission

Test report

  1. EDD Commission loop config

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

  2. EDD Commission loop type

      can create loop type edd_commission
      returns commissions from method get_items()
      commission is an object

  3. EDD Commission loop item

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

  4. EDD Commission fields

      Commission ID - success
      Commission User ID - success
      Commission status : unpaid, paid, revoked - success
      Commission payment id - success
      Commission currency - success
      Commission product id - success
      Commission type - success
      Commission rate - success

All 4 tests passed

Customer

Test report

  1. EDD customer loop config

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

  2. Customer loop type

      can create loop type edd_customer
      returns customers from method get_items()
      customer is an object

  3. Customer loop item

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

  4. Customer fields

      Customer ID
      Customer User ID
      Customer name
      Customer email
      Number of purchases
      Total amount spent on purchases
      Date when customer was created
      Payment IDs

All 4 tests passed

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

Download Log

Test report

  1. EDD download log loop config

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

  2. Download Log loop type

      can create loop type edd_download_log
      returns download logs from method get_items()
      download log is an instance of EDD_Download Log

  3. Download Log loop item

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

  4. Download Log fields

      Respective product (download)
      Corresponding payment id
      Respective product (download)
      User who downloaded file
      ID
      name/slug
      URL
      Title
      Content
      Status
      Edit URL
      Publish date
      Modify date
      Post classes
      Menu order
      On an author archive page: Current author as a user loop
      On a taxonomy archive page: Current taxonomy term as a loop
      On a post type archive page: Current post type as a loop
      Author
      Author's user field
      Parent
      All parent IDs from current to top
      Children
      Children IDs
      Ancestor posts from lowest to highest level; Set reverse=true to go from top-level down
      Featured image

All 4 tests passed

License

Test report

  1. EDD license loop config

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

  2. License loop type

      can create loop type edd_license
      returns licenses from method get_items()
      license is an instance of EDD_License

  3. License loop item

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

  4. License fields

      List of EDD_SL_License objects for the child licenses. Returns a loop.
      Gets associated download. Returns a loop.
      Gets license activations. Returns a loop.
      Gets license logs. Returns a loop.
      License ID
      License name
      Default activation count
      Activation count
      Expiration date or 'lifetime'
      License display status
      License renewal url
      License unsubscribe url
      Returns if the license is at its activation limit
      Check if license is expired
      Get the string equivalent of the length of the license. For example: +1years
      Used to display the term for a given license to the user

  5. License query parameters

  6. License subloops

      activations returns a Loop
      child licenses returns a Loop
      download returns a 1-sized Loop
      Correctly returns a product/download
      logs returns a Loop

All 6 tests passed

Payment

Test report

  1. EDD payment loop config

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

  2. Payment loop type

      can create loop type edd_payment
      returns payments from method get_items()
      payment is an instance of EDD_Payment

  3. Payment loop item

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

  4. Payment fields

      Payment ID
      Payment number
      Payment amount
      Payment date
      Payment status
      Currency code
      Subscription ID where applicable

All 4 tests passed

Payment Method

Test report

  1. Edd payment method loop config

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

  2. Payment method loop type

      can create loop type edd_payment_method
      returns products from method get_items()
      payment method is an array

  3. Payment method loop item

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

  4. Payment method fields

      Admin label
      Checkout label
      Options a gateway supports

All 4 tests passed

Product

Test report

  1. EDD product

  2. EDD product loop config

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

  3. Product loop type

      can create loop type edd_product
      returns products from method get_items()
      product is an instance of WP_Post

  4. Product loop item

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

  5. Product fields

      is_variable: Whether product has variable pricing. If yes, the "pricing" field is to be used to grab price
      raw_price: Product raw price. Might be irrelevant if product has variable pricing
      price: Product display price (either raw or sale price). Might be irrelevant if product has variable pricing
      sale_price: Product sale price (whether product is on sale or not). Might be irrelevant if product has variable pricing
      purchase_link: Edd download purchase link - generates the Purchase or Add to Cart buttons
      vendor: Product vendor. Returns a Loop of "edd_vendor" type.
      pricing: Product pricing. Returns one or more values, depending on whether product has variable prices or not. Returns a Loop.
      files: Downloadable files. Returns one or more values, depending on whether product has variable prices or not. Returns a Loop.
      sku: Product sku
      type: EDD product type
      id: ID
      name: name/slug
      url: URL
      title: Title
      content: Content
      excerpt: Excerpt
      status: Status
      edit_url: Edit URL
      publish_date: Publish date
      modify_date: Modify date
      post_class: Post classes
      menu_order: Menu order
      archive_author: On an author archive page: Current author as a user loop
      archive_term: On a taxonomy archive page: Current taxonomy term as a loop
      archive_post_type: On a post type archive page: Current post type as a loop
      author: Author
      author_*: Author's user field
      parent: Parent
      parent_*: Parent field
      parent_ids: All parent IDs from current to top
      children: Children
      children_ids: Children IDs
      ancestors: Ancestor posts from lowest to highest level; Set reverse=true to go from top-level down
      image: Featured image
      image_*: Featured image field

All 5 tests passed

Product Review

Test report

  1. Edd product review loop config

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

  2. Product review loop type

      can create loop type edd_product_review
      returns reviews from method get_items()
      product review is an instance of WP_Comment

  3. Product review loop item

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

  4. Product review fields

      Comment id
      Product id
      Author name
      Author email
      Author url
      Author ip
      Comment date
      Comment date gmt
      Comment content
      Comment Karma
      Review rating

All 4 tests passed

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

Tax rate

Test report

  1. Edd tax rate loop config

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

  2. Tax rate loop type

      can create loop type edd_tax_rate
      returns tax rates from method get_items()
      tax rate is an array

  3. Tax rate loop item

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

  4. Tax rate fields

      Tax rate percent
      Country
      Country state

All 4 tests passed

Vendor

Test report

  1. EDD FES Vendor loop config

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

  2. EDD FES Vendor loop type

      can create loop type edd_vendor
      returns vendors from method get_items()
      vendor is an object

  3. EDD FES Vendor loop item

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

  4. EDD FES Vendor fields

      Vendor User ID - success
      Number of vendor products - success
      Number of vendor sales - success
      Total sales value - success
      Vendor status - success
      Vendor email - success
      Vendor username - success
      Vendor first name - success
      Vendor last name - success
      Vendor store name - success
      Vendor store contact email - success

  5. EDD FES Vendor sub loops

      Vendor products sub loop returns a Loop
      Vendor products sub loop returns correct products

All 5 tests passed