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

Add unit tests for \mod_forum_external::get_discussion_posts_by_userid()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8.5, 3.9.2, 3.10, 4.0
    • Fix Version/s: None
    • Component/s: Forum, Unit tests
    • Labels:
      None
    • Affected Branches:
      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              vmdef Víctor Déniz Falcón
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: