Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41540

quiz_create_attempt should not be using $USER global internally

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Quiz
    • Labels:
      None

      Description

      If we add a userid param to quiz_create_attempt we can run tests which simulate student attempts without having to use session_set_user or similar. quiz_create_attempt was recently added (in MDL-40074) and I would expect is not widely used, so an api change at this point should not cause any problems.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamiesensei Jamie Pratt
                Reporter:
                jamiesensei Jamie Pratt
                Peer reviewer:
                Tim Hunt
                Integrator:
                Sam Hemelryk
                Tester:
                Sam Hemelryk
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13