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

\core\user::$preferencescache is not reset between unittests

XMLWordPrintable

      There is a static variable in \core\user::$preferencescache that needs to be reset between unittests because it may contain some values that are different between tests.

      For example, $preferences['user_home_page_preference'] has a list of choices that are populated from a hook and can be different depending on the enabled functionality.

      Other plugins may also implement *_user_preferences callback using dynamic list of options

            marina Marina Glancy
            marina Marina Glancy
            Paul Holden Paul Holden
            Huong Nguyen Huong Nguyen
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 6 minutes
                4h 6m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.