Order

Test report

  1. Order loop config

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

  2. Order loop type

      can create loop type woo_order
      returns orders from method get_items()
      returns an instance of WooCommerce order

  3. Order loop item

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

  4. Order subloops

      members returns a Loop
      returns items correctly

  5. Order fields

      ID
      Checking status
      Checking order_number
      Checking billing_country
      Checking currency
      Checking total
      Checking item_count

All 5 tests passed