moodle/backup/moodle2
Eloy Lafuente (stronk7) 81407f18ec MDL-71036 phpunit: Mock->setMethods() silently deprecated
The current ->setMethods() has been silently (won't emit any
warning) in PHPUnit 9. And will stop working (current plans)
in PHPUnit 10.

Basically the now deprecated method has been split into:

- onlyMethods(): To point to existing methods in the mocked artifact.
- addMethods(): To point to non existing (yet) methods in the mocked
  artifact.

In practice that means that all our current setMethods() calls can be
converted to onlyMethods() (existing) and done. The addMethods() is
mostly useful on development phases, not final testing.

Finally note that <null> isn't accepted anymore as parameter to
double all the methods. Instead empty array [] must be used.

Link: https://github.com/sebastianbergmann/phpunit/issues/3770
2021-03-11 23:04:31 +01:00
..
tests MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
backup_activity_task.class.php MDL-69995 backup: padding before activity icons. 2020-10-25 02:08:38 +02:00
backup_block_task.class.php
backup_course_task.class.php MDL-68314 core_contentbank: Course content bank backup and restore 2020-05-13 09:35:58 +02:00
backup_coursereport_plugin.class.php
backup_custom_fields.php MDL-35773 core_backup: controller has full responsibility for files 2019-07-26 17:00:40 +08:00
backup_default_block_task.class.php
backup_enrol_plugin.class.php MDL-47323 backup: added enrol plugin backup structure and annotation 2014-12-02 21:46:33 -05:00
backup_final_task.class.php MDL-64843 Backup: Course copy user interface 2020-05-15 06:02:02 +00:00
backup_format_plugin.class.php
backup_gradingform_plugin.class.php
backup_local_plugin.class.php
backup_plagiarism_plugin.class.php
backup_plan_builder.class.php MDL-25617 backup: backup/restore using extra_question_fields 2018-03-28 18:16:34 +02:00
backup_plugin.class.php MDL-66709 backup: improve some PHPdoc type hints 2019-09-23 19:21:09 +01:00
backup_qtype_extrafields_plugin.class.php MDL-25617 backup: backup/restore using extra_question_fields 2018-03-28 18:16:34 +02:00
backup_qtype_plugin.class.php
backup_report_plugin.class.php
backup_root_task.class.php MDL-68702 core_backup: exclude legacy course files 2020-09-11 10:41:37 +10:00
backup_section_task.class.php
backup_settingslib.php MDL-68314 core_contentbank: Course content bank backup and restore 2020-05-13 09:35:58 +02:00
backup_stepslib.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
backup_subplugin.class.php
backup_theme_plugin.class.php
backup_tool_plugin.class.php MDL-51858 backup: Support admin tools in course and module backups 2016-04-18 10:58:44 +08:00
backup_xml_transformer.class.php MDL-66593 core_backup: Replace h5p/embed.php url for H5PEMBED@$ 2019-10-30 06:46:35 +01:00
restore_activity_task.class.php MDL-69202 Restore backup: add getter method for oldmoduleid 2021-01-16 10:25:05 +01:00
restore_block_task.class.php MDL-55356 backup: Correct variable name 2017-10-12 14:53:16 +08:00
restore_course_task.class.php MDL-68702 core_backup: exclude legacy course files 2020-09-11 10:41:37 +10:00
restore_coursereport_plugin.class.php
restore_default_block_task.class.php
restore_enrol_plugin.class.php MDL-47323 backup: added enrol plugin backup structure and annotation 2014-12-02 21:46:33 -05:00
restore_final_task.class.php MDL-55356 backup: Check setting exists before checking value 2017-10-12 11:37:05 +08:00
restore_format_plugin.class.php
restore_gradingform_plugin.class.php
restore_local_plugin.class.php
restore_plagiarism_plugin.class.php
restore_plan_builder.class.php MDL-25617 backup: backup/restore using extra_question_fields 2018-03-28 18:16:34 +02:00
restore_plugin.class.php MDL-66709 backup: move question attempt data helpers to a trait 2019-09-23 19:24:32 +01:00
restore_qtype_extrafields_plugin.class.php MDL-25617 backup: backup/restore using extra_question_fields 2018-03-28 18:16:34 +02:00
restore_qtype_plugin.class.php MDL-68203 restore: Decode quiz links when restore into existing course 2020-05-27 10:38:40 +10:00
restore_report_plugin.class.php
restore_root_task.class.php MDL-68702 core_backup: exclude legacy course files 2020-09-11 10:41:37 +10:00
restore_section_task.class.php
restore_settingslib.php MDL-68314 core_contentbank: Course content bank backup and restore 2020-05-13 09:35:58 +02:00
restore_stepslib.php MDL-48269 core_backup: Prevent unwanted group icons from being restored 2021-02-16 22:26:13 +08:00
restore_subplugin.class.php MDL-60416 mod_lti: Introduced LTI Advantage 2018-04-09 12:08:35 +08:00
restore_theme_plugin.class.php
restore_tool_plugin.class.php MDL-51858 backup: Support admin tools in course and module backups 2016-04-18 10:58:44 +08:00