Access Plan

Test report

  1. Access Plan loop config

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

  2. LifterLMS Access Plan loop type

      can create loop type lifter_access_plan
      returns plans from method get_items()
      returns an instance of WP Post of 'plan' post type

  3. LifterLMS Access Plan loop item

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

  4. LifterLMS Access Plan fields

      ID
      plan_frequency
      plan_price
      plan_visibility
      plan_has_trial
      plan_is_on_sale

  5. LifterLMS Access Plan logic

      plan has trial

  6. Access Plan subloops

      plan course subloop returns a Loop
      plan course subloop returns correct course

  7. Access Plan query args

      Filtering by 'is_featured' query argument returns corresponding plans

All 7 tests passed