XMLWordPrintable

Details

    • MOODLE_22_STABLE
    • MOODLE_25_STABLE
    • MDL-30102_master
    • Hide
      1. Create a courses.
      2. Create a forum in this course.
      3. Add a discussion with a few replies.
      4. Add another forum that is hidden with an impossible conditional field (eg. firstname is empty).
      5. Enrol a user into the course.
      6. Create a web service token for the enrolled student to use for the following steps when making calls with the web service.
      7. Create a web service client (similar to the one attached) that includes the first forum id in the params.
      8. Execute the client and ensure the discussions for that forum are returned.
      9. Change the params to include the id of the hidden forum and ensure exception thrown.
      10. Run the PHP Unit test phpunit mod/forum/tests/externallib_test.php.
      11. Run the PHP Unit test phpunit lib/testing/tests/generator_test.php.
      Show
      Create a courses. Create a forum in this course. Add a discussion with a few replies. Add another forum that is hidden with an impossible conditional field (eg. firstname is empty). Enrol a user into the course. Create a web service token for the enrolled student to use for the following steps when making calls with the web service. Create a web service client (similar to the one attached) that includes the first forum id in the params. Execute the client and ensure the discussions for that forum are returned. Change the params to include the id of the hidden forum and ensure exception thrown. Run the PHP Unit test phpunit mod/forum/tests/externallib_test.php. Run the PHP Unit test phpunit lib/testing/tests/generator_test.php.

    Attachments

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

      Issue Links

        Activity

          People

            markn Mark Nelson
            jerome Jérôme Mouneyrac
            Frédéric Massart Frédéric Massart
            Damyon Wiese Damyon Wiese
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/May/13