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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1, 3.4.1
    • Fix Version/s: None
    • Component/s: Files API
    • Labels:
    • Affected Branches:
      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              andyjdavis Andrew Davis
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: