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

Move debugging() to lib/setup.php

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.0
    • General
    • MOODLE_30_STABLE
    • MDL-51764-master
    • Hide
      1. Run phpunit
      2. Run Behat

      Unfortunately, there are no explicit tests for debugging(), but it is used in a number of places in the unit tests. I briefly looked at writing some, but most of the cases which we would want to test are untestable (they depend upon CLI_SCRIPT, they write to error_log, etc.).

      Show
      Run phpunit Run Behat Unfortunately, there are no explicit tests for debugging(), but it is used in a number of places in the unit tests. I briefly looked at writing some, but most of the cases which we would want to test are untestable (they depend upon CLI_SCRIPT, they write to error_log, etc.).

      As highlighted in MDL-51011, debugging() is only defined in lib/weblib.php

      This should be moved to lib/setuplib.php so that it is defined early enough to be used throughout Moodle.

            Unassigned Unassigned
            dobedobedoh Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

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