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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.7
    • Unit tests
    • MOODLE_27_STABLE

      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.

            Unassigned Unassigned
            ankit_frenz Ankit Agarwal
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.