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

Provide apis to start and stop ignoring error logs in unit tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7
    • Fix Version/s: BACKEND
    • Component/s: Unit tests
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      Sometimes error_log() are expected in a unit test. Example calling the api mod_duplicate_activity();

      Currently we do something like this to stop this error.
      ini_set('error_log', "$CFG->dataroot/testlog.log");

      Would be nice to have some api wrappers for this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ankit_frenz Ankit Agarwal
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: