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

get_message_processors() has a static cache which is not reset by phpunit tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.5.3
    • Component/s: Messages, Unit tests
    • Labels:

      Description

      As Yuliya discovered, the static cache in get_message_processors() is not reset between tests creating variable results.

      We probably need to add a reset param to the function and include it in the pphunit resets.

        Attachments

          Activity

            People

            • Assignee:
              ybozhko Yuliya Bozhko
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie, Andrew Nicols, Mathew May, 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:
                11/Nov/13