Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17284 Add Olli's new quiz editing UI to Moodle 2.0
  3. MDL-17295

Write unit tests for quiz_questions_in_quiz, quiz_number_of_pages and quiz_number_of_questions_in_quiz

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • Quiz
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      These functions have become much trickier. However, they look like they should be really easy to unit test.

      You can start by copying mod/quiz/simpletest/testlib.php to mod/quiz/simpletest/testlocallib.php then edit. The docs are at http://docs.moodle.org/en/Development:Unit_tests. You will probably need to use assertEquals.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.