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

Add basic unit tests for lib/filelib.php file_pluginfile()

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.1, 3.4.1
    • None
    • Files API
    • MOODLE_24_STABLE, MOODLE_34_STABLE

    Description

      There was a straight up coding error in file_pluginfile(). See MDL-37797. It would be great to add some basic unit tests for the function as there do not seem to be any currently.

      Initially at least they don't need to be exhaustive. Just enough to check that the various queries run without error.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andyjdavis Andrew Davis
              Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: