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

Add support for $CFG->alternative_file_system_class to be used during unit tests.

    XMLWordPrintable

    Details

      Description

      Now that MDL-46375 has been integrated (Thanks Andrew Nicols), I believe there should be support for running all unit tests against a configured $CFG->alternative_file_system_class.

      There are two ways i can see this happening:

      1. $CFG->alternative_file_system_class is added to the allowed $CFG variables list in /lib/phpunit/bootstrap.php

      2. If its a unit test, setup_file_system will look for a $CFG->phpunit_alternative_file_system_class

      My preference is for option 1.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              kennethhendricks Kenneth Hendricks
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Andrew Nicols
              Tester:
              Jake Dallimore
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/17