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