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

accesslib should not use static to cache things

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Roles / Access
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      It makes it impossible to use test data in unit tests.

      We should use global variables instead, with dire warnings not to access these globals outside accesslib.

      And then create a clear_all_roles_caches() function that unit tests can use when switching to test data, and back.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10