Quiz

Test report

  1. Quiz loop config

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

  2. LearnDash Quiz loop type

      can create loop type learndash_quiz
      returns quizs from method get_items()
      returns an instance of WP Post of 'sfwd-quiz' post type

  3. LearnDash Quiz loop item

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

  4. LearnDash Quiz fields

      ID
      quiz_passing_percentage
      quiz_certificate_threshold_percent
      quiz_result_grade_enabled
      quiz_enrolled
      quiz_time_limit

  5. LearnDash Quiz logic

      quiz_has_certificate, true/false

  6. Quiz subloops

      quiz lessons subloop returns a Loop
      quiz lessons subloop returns correct lessons

  7. Quiz query args

      Filtering by 'has_prerequisite' query argument returns corresponding quizzes

All 7 tests passed