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

Move manually defined testcases to autoloader

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5
    • Unit tests
    • None

      Following from the completion of MDL-66903 we should try to move existing testcases to autoloadable locations.

      We should:

      • put them into the autoloaded locations
      • where they are expected to be used outside of that location (e.g. core subsystem, plugin with subplugin, core) they should provide a simple polyfill class so that anyone manually requiring the file won't have issues
      • the polyfill should not emit any debugging until 6.0 and will be removed in 7.0
      • the main branch might update all uses if sensible
      • stable branches will get the new locations but not the usage update

      admin/tool/dataprivacy/tests/data_privacy_testcase.php:abstract class data_privacy_testcase extends advanced_testcase {
      analytics/tests/community_of_inquiry_activities_completed_by.php:class community_of_inquiry_activities_completed_by_testcase extends advanced_testcase {
      backup/tests/backup_restore_base_testcase.php:abstract class core_backup_backup_restore_base_testcase extends advanced_testcase {
      enrol/lti/tests/local/ltiadvantage/lti_advantage_testcase.php:abstract class lti_advantage_testcase extends \advanced_testcase {
      lib/grade/tests/fixtures/lib.php:abstract class grade_base_testcase extends advanced_testcase {
      lib/phpunit/classes/advanced_testcase.php:abstract class advanced_testcase extends base_testcase {
      lib/phpunit/classes/basic_testcase.php:abstract class basic_testcase extends base_testcase {
      lib/phpunit/classes/database_driver_testcase.php:abstract class database_driver_testcase extends base_testcase {
      lib/phpunit/classes/restore_date_testcase.php:abstract class restore_date_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/assign/tests/externallib_advanced_testcase.php:abstract class externallib_advanced_testcase extends \externallib_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 {
      mod/lti/tests/mod_lti_testcase.php:abstract class mod_lti_testcase extends externallib_advanced_testcase  {
      privacy/classes/tests/provider_testcase.php:abstract class provider_testcase extends \advanced_testcase {
      question/bank/columnsortorder/classes/tests/external_function_testcase.php:abstract class external_function_testcase extends \advanced_testcase {
      question/engine/tests/helpers.php:abstract class question_testcase extends advanced_testcase {
      report/progress/tests/report_progress_helper_testcase.php:class report_progress_helper_testcase extends advanced_testcase {
      reportbuilder/tests/helpers.php:abstract class core_reportbuilder_testcase extends advanced_testcase {
      repository/googledocs/tests/googledocs_content_testcase.php:abstract class googledocs_content_testcase extends repository_googledocs_testcase {
      repository/googledocs/tests/repository_googledocs_testcase.php:abstract class repository_googledocs_testcase extends \advanced_testcase {
      webservice/tests/helpers.php:abstract class externallib_advanced_testcase extends advanced_testcase {
      

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

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 20 minutes
                4h 20m

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