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

Fix remaining misnamed unit test files/classes

XMLWordPrintable

      Part of the list of testcases mentioned in MDL-82400 are actual testcases (or should be), but have either:

      1. Wrong filename (missing/incorrect _test suffix so they're never executed);
      2. Wrong classname (usually combined with the above)

      Some examples:

      $ git grep "testcase extends" | grep -v abstract
      analytics/tests/community_of_inquiry_activities_completed_by.php:class community_of_inquiry_activities_completed_by_testcase extends advanced_testcase {
      lib/tests/event_course_module_instance_list_viewed.php:class core_event_course_module_instance_list_viewed_testcase extends advanced_testcase {
      lib/tests/event_course_module_viewed.php:class core_event_course_module_viewed_testcase extends advanced_testcase {
      mod/glossary/tests/external/delete_entry.php:class delete_entry_testcase extends externallib_advanced_testcase {
      mod/glossary/tests/external/prepare_entry.php:class prepare_entry_testcase extends externallib_advanced_testcase {
      mod/glossary/tests/external/update_entry.php:class update_entry_testcase extends externallib_advanced_testcase {
      mod/h5pactivity/tests/external/log_report_viewed.php:class log_report_viewed_testcase extends externallib_advanced_testcase {
      report/progress/tests/report_progress_helper_testcase.php:class report_progress_helper_testcase extends advanced_testcase {
      

      In the case of most of them (example) it's completely impossible to execute the test, so some may now start failing

      This should finish off work from stronk7 in MDL-71049

            pholden Paul Holden
            pholden Paul Holden
            Carlos Castillo Carlos Castillo
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 47 minutes
                47m

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