Essay

Test report

  1. Essay loop config

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

  2. LearnDash Essay loop type

      can create loop type learndash_essay
      returns lessons from method get_items()
      returns an instance of WP Post of 'sfwd-essay' post type

  3. LearnDash Essay loop item

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

  4. LearnDash Essay fields

      ID
      author - correct
      essay_comments_number - correct
      essay_points_awarded - correct

  5. Essay query args

      Filtering by 'approved' query argument returns corresponding essays
      Filtering by 'enrolled' query argument returns corresponding essays

All 5 tests passed