Section

Test report

  1. Section loop config

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

  2. LifterLMS Section loop type

      can create loop type lifter_section
      returns sections from method get_items()
      returns an instance of WP Post of 'section' post type

  3. LifterLMS Section loop item

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

  4. LifterLMS Section fields

      ID
      section_count_elements
      section_parent_course

  5. LifterLMS Section logic

      section completed by student

  6. Section subloops

      section sub loop 'parent course' returns a Loop
      return 'parent course' correctly

  7. Section query args

      Filtering by 'lesson' query argument returns corresponding section

All 7 tests passed