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

admin_get_root has a static cached that is not cleared when user changes.

    XMLWordPrintable

    Details

      Description

      When using unit tests, after changing user, the admin tree can have stale data and previous tests can affect later ones.

      I ran into that problem when core admintree_test runs and breaks tests that would succeed when ran separately.

      My fix is to force a reload of the admin tree whenever a user changes during unit tests.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/18