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

Fix incorrect/misleading usage of expectException in unit tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.11.4
    • Unit tests
    • MOODLE_311_STABLE

      Example: https://github.com/moodle/moodle/blob/d5698ac6890d40f2a18a73ba9940205b6e0beeb4/admin/tool/policy/tests/externallib_test.php#L178-L197

      Code after the exception expectation is not executed, so that expectation should be moved to the correct place and/or the following code should be re-factored so it is actually being tested and that those tests are valid

      See also MDL-69700

            Unassigned Unassigned
            pholden Paul Holden
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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