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

Details

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

    Description

      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.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10