Voucher

Test report

  1. Voucher loop config

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

  2. LifterLMS Voucher loop type

      can create loop type lifter_voucher
      returns vouchers from method get_items()
      returns an instance of WP Post of 'voucher' post type

  3. LifterLMS Voucher loop item

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

All 3 tests passed