Order
Test report
1. Order loop config
exists as loop type lifter_order
has property "name"
has property "title"
has property "category"
has property "description"
has property "query_args"
has property "fields"
2. LifterLMS Order loop type
can create loop type lifter_order
returns orders from method get_items()
returns an instance of WP Post of 'order' post type
3. LifterLMS Order loop item
loop has next item
loops every item
loop can be reset
has current item
4. LifterLMS Order fields
ID
order_status
order_access_status
order_initial_price
order_start_date
order_total
5. LifterLMS Order logic
order has_sale - true/false)
6. Order subloops
order loop 'is_recurring' returns a Loop
return 'is_recurring' correctly
order product subloop returns a Loop
order product subloop returns correct product
7. Order query args
Filtering by 'status' query argument returns corresponding orders
All 7 tests passed