• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.5
    • Forum
    • None
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-37247_master
    • Hide
      1. Create a few courses.
      2. Create multiple forums in each course.
      3. Enrol a user into one of the courses.
      4. Create a web service client (similar to the one attached) that includes the course they are enrolled in in the courseids array.
      5. Execute the client and ensure the forums for that course are returned.
      6. Edit the courseids array so that it is empty.
      7. Execute the client and ensure the forums for the course they are enrolled in are returned.
      8. Add the courseids for the courses they are not enrolled in.
      9. Execute the client and ensure a capability error is thrown.
      10. Run the PHP Unit test (phpunit -c mod/forum/phpunit.xml).
      Show
      Create a few courses. Create multiple forums in each course. Enrol a user into one of the courses. Create a web service client (similar to the one attached) that includes the course they are enrolled in in the courseids array. Execute the client and ensure the forums for that course are returned. Edit the courseids array so that it is empty. Execute the client and ensure the forums for the course they are enrolled in are returned. Add the courseids for the courses they are not enrolled in. Execute the client and ensure a capability error is thrown. Run the PHP Unit test (phpunit -c mod/forum/phpunit.xml).

      Create a get_forum() WS function to retrieve a forum instance.

        1. ws_client.php
          1 kB
        2. ws_curl.php
          18 kB

            markn Mark Nelson
            markn Mark Nelson
            Damyon Wiese Damyon Wiese
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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