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

Add unit tests for \mod_forum_external::get_discussion_posts_by_userid()

    XMLWordPrintable

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.8.5, 3.9.2, 3.10, 4.0
    • None
    • Forum, Unit tests
    • None
    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE

    Description

      MDL-68900 solves a bug found in \mod_forum_external::get_discussion_posts_by_userid(), revealing the existing unit tests for that method was asserting an incorrect result.

      The unit test was fixed but modified to address only a specific scenario: when the display period of a post has ended.

      \mod_forum_external::get_discussion_posts_by_userid() should be fully tested to cover other scenarios.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmdef Víctor Déniz Falcón
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, 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: