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

unit test failure when 3rd party course formats included

XMLWordPrintable

      The patch in MDL-83163 has caused a regression in the unit tests when the codebase includes other 3rd party course formats.

      Install any 3rd party course format (tiles is what I've used)

      Run test_get_sorted_course_formats_installed_or_not unit test.

       

      There was 1 failure:
      1) core_course\courselib_test::test_get_sorted_course_formats_installed_or_not
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
           1 => 'weeks'
           2 => 'singleactivity'
           3 => 'social'
      +    4 => 'tiles'
       )
      /builds/elearning/local/moodle-local/course/tests/courselib_test.php:7519

       

      I've spotted this in 4.5 but it's likely to be an issue on other branches too.

            danmarsden Dan Marsden
            danmarsden Dan Marsden
            Sam Marshall Sam Marshall
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 16 minutes
                1h 16m

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