moodle/lib/tests
Eloy Lafuente (stronk7) 2d693cda7a 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:07:31 +01:00
..
behat Merge branch 'MDL-70726-3.11' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_311_STABLE 2021-03-11 00:11:44 +01:00
content/export MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:07:31 +01:00
event MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
external MDL-69215 output: Correct font awesome for themes 2020-07-16 07:29:22 +08:00
fixtures MDL-65284 analytics: Final deprecation get_analysables() 2020-12-16 12:47:52 +01:00
other MDL-68477 libraries: add legend option examples to test page 2020-04-23 09:23:21 +08:00
output MDL-69215 output: Correct use of icon_system::instance 2020-07-16 07:29:22 +08:00
performance
plugininfo MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
accesslib_has_capability_test.php MDL-68974 admin: Unit tests for loginas 2020-09-08 08:54:33 +02:00
accesslib_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:07:31 +01:00
adhoc_task_test.php MDL-67980 tasks: Sort ad-hoc tasks by nextruntime. 2020-02-24 09:30:09 +11:00
adminlib_test.php MDL-69746 tool_replace: additional skip tables 2020-10-02 15:00:18 +10:00
admintree_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
ajaxlib_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
analysers_test.php MDL-65284 analytics: Final deprecation get_analysables() 2020-12-16 12:47:52 +01:00
antivirus_test.php MDL-71036 phpunit: Renamed various file-related assertions 2021-03-11 23:07:30 +01:00
authlib_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
blocklib_test.php MDL-67673 phpunit: Remove deprecated assertEquals() params 2020-10-21 12:46:05 +02:00
calendar_cron_task_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
check_test.php MDL-67818 check: Added Check API and refactored security checks 2020-04-06 12:28:37 +10:00
collator_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
completion_daily_task_test.php MDL-52904 completion: Unit tests for daily completion task 2020-05-04 09:57:30 +08:00
completionlib_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:07:31 +01:00
component_test.php MDL-71036 phpunit: Renamed various file-related assertions 2021-03-11 23:07:30 +01:00
componentlib_test.php
configonlylib_test.php
content_test.php MDL-69559 course: Add capability and access checks for course download 2020-10-26 10:19:33 +08:00
core_media_player_native.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
core_renderer_template_exploit_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
coverage.php
cronlib_test.php
csslib_test.php
csvclass_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
curl_security_helper_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:07:31 +01:00
customcontext_test.php MDL-70159 tool_capability: order capabilities by their name. 2021-01-14 07:32:53 +00:00
dataformat_test.php MDL-55971 dataformat: method to write exports to file storage. 2020-08-25 17:30:51 +01:00
datalib_test.php MDL-45242 Admin: User list supports custom profile fields 2021-03-10 10:58:09 +00:00
datalib_update_with_unique_index_test.php
date_legacy_test.php
date_test.php MDL-68760 string tests: make test_timezone_lang_strings message helpful 2020-05-18 16:51:17 +01:00
editorlib_test.php
encryption_test.php MDL-65818 Security: Encryption API and admin setting for secure data 2020-12-04 14:40:18 +00:00
environment_test.php
event_context_locked_test.php MDL-65443 core: Log when a context is locked or unlocked 2019-08-20 08:52:35 +01:00
event_course_module_instance_list_viewed.php
event_course_module_viewed.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
event_deprecated_test.php
event_grade_deleted_test.php
event_profile_field_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
event_test.php MDL-71036 phpunit: Deprecated expectException for notice/warning/error 2021-03-11 23:07:30 +01:00
event_unknown_logged_test.php
event_user_graded_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
event_user_password_updated_test.php
events_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
exporter_test.php MDL-67673 phpunit: Remove expectedException annotations 2020-10-21 12:46:05 +02:00
externallib_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
filelib_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
filestorage_zip_archive_test.php MDL-68137 core_files: replace consecutive dots in filename by single dot 2020-04-28 11:29:35 +02:00
filetypes_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
filter_manager_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
filterlib_test.php MDL-71036 phpunit: Renamed various file-related assertions 2021-03-11 23:07:30 +01:00
formslib_test.php
gdlib_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
gradelib_test.php MDL-68388 core_grades: Tweak unit test assertion to make Oracle happy 2020-05-26 19:00:24 +02:00
grades_externallib_test.php MDL-67306 webservices: Added webservice for Grade category creation 2020-09-03 00:21:44 +02:00
grading_externallib_test.php
grouplib_test.php MDL-71036 phpunit: assertContains() now performs strict comparison 2021-03-11 23:07:31 +01:00
h5p_clean_orphaned_records_task_test.php MDL-66769 core_h5p: Clean up orphaned h5p records task. 2021-02-03 09:33:17 +02:00
h5p_get_content_types_task_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:07:31 +01:00
html2text_test.php
html_writer_test.php
htmlpurifier_test.php
indicators_test.php MDL-65588 analytics: Unit tests for any_course_access 2019-09-20 08:14:13 +08:00
ip_utils_test.php MDL-67861 libraries: Refactor is_ip_in_subnet_list in ip_utils 2020-03-05 01:28:04 +01:00
jquery_test.php MDL-67673 phpunit: Remove deprecated assertInternalType() 2020-10-21 12:46:05 +02:00
ldaplib_test.php
licenselib_test.php MDL-45184 tool_licenses: Add custom licenses 2020-05-26 12:08:05 +10:00
lock_config_test.php MDL-66935 core_lock: Fix resource key clashes in db and postgres locks 2019-10-24 15:04:56 +11:00
lock_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
markdown_test.php
mathslib_test.php MDL-67673 phpunit: Remove deprecated assertEquals() params 2020-10-21 12:46:05 +02:00
medialib_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
message_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
messageinbound_test.php MDL-67169 phpunit: fix clear flaw in unit test provider 2019-11-07 13:44:06 +01:00
messagelib_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
minify_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
modinfolib_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
moodle_page_test.php MDL-67673 phpunit: Remove expectedException annotations 2020-10-21 12:46:05 +02:00
moodle_url_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
moodlelib_test.php MDL-71036 phpunit: Deprecated expectException for notice/warning/error 2021-03-11 23:07:30 +01:00
mustache_template_finder_test.php MDL-67673 phpunit: Remove expectedException annotations 2020-10-21 12:46:05 +02:00
mustache_template_source_loader_test.php MDL-69553 output: Unit tests for loading multiline string defines 2020-10-21 10:06:25 +01:00
myprofilelib_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
navigationlib_test.php
notification_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
oauth2_test.php MDL-70725 oauth2: move expectException to separate method 2021-01-27 17:54:08 +01:00
output_mustache_helper_collection_test.php MDL-69050 lang: Stop using the term blacklist in mustache output engine 2020-09-24 19:39:36 +02:00
outputcomponents_test.php MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:58:09 +00:00
outputfactories_test.php
outputrequirementslib_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
pdflib_test.php MDL-70735 tcpdf: Reduce information disclosure from TCPDF 2021-02-12 15:42:01 +11:00
persistent_test.php MDL-67673 phpunit: Remove expectedException annotations 2020-10-21 12:46:05 +02:00
plugin_manager_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
portfoliolib_test.php
progress_display_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
progress_test.php
qrcode_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
questionlib_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
regex_test.php
requirejs_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:05 +02:00
rsslib_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
rtlcss_test.php MDL-67097 libraries: add unit test verifying rtl directive failure case 2019-11-06 08:57:27 +08:00
sample_questions.ser
sample_questions.xml
sample_questions_with_old_image_tag.ser
sample_questions_with_old_image_tag.xml
sample_questions_wrong.xml
scheduled_task_test.php Merge branch 'MOODLE_311_MDL-70520' of https://github.com/golenkovm/moodle into MOODLE_311_STABLE 2021-01-07 00:19:00 +01:00
scss_test.php
session_manager_test.php MDL-67673 phpunit: Remove deprecated assertEquals() params 2020-10-21 12:46:05 +02:00
session_redis_test.php MDL-69121 core: Add ZSTD/Gzip compression options to Redis sessions 2020-11-24 23:16:30 +01:00
sessionlib_test.php
setuplib_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
statslib_test.php MDL-67673 phpunit: Move tests to use new phpunit_dataset 2020-10-21 12:46:05 +02:00
string_manager_standard_test.php MDL-69788 lang: fallback to all translations if misconfigured. 2020-10-16 14:38:03 +01:00
tablelib_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
task_database_logger_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:07:31 +01:00
task_logging_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
task_manager_test.php MDL-67483 tasks: Improvements to adhoc task queue at very high scale 2019-12-19 10:49:16 +10:00
task_running_test.php MDL-67211 phpunit: Do not test the order of the running adhoc tasks. 2020-08-27 13:03:49 +10:00
text_test.php
theme_config_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
time_splittings_test.php MDL-67673 phpunit: Remove deprecated assertEquals() params 2020-10-21 12:46:05 +02:00
update_api_test.php
update_checker_test.php MDL-67673 phpunit: Remove expectedException annotations 2020-10-21 12:46:05 +02:00
update_code_manager_test.php MDL-67673 phpunit: Remove expectedException annotations 2020-10-21 12:46:05 +02:00
update_validator_test.php MDL-67673 phpunit: Remove deprecated assertInternalType() 2020-10-21 12:46:05 +02:00
upgrade_util_test.php
upgradelib_test.php MDL-70245 core_grade: Fix grade_get_setting unit test failures 2021-01-07 23:49:29 +01:00
user_fields_test.php MDL-45242 Lib: Allow custom profile fields in showuseridentity 2021-03-08 09:17:03 +00:00
user_menu_test.php
user_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
useragent_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:46:04 +02:00
weblib_format_text_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
weblib_test.php MDL-71036 phpunit: Renamed various regexp-related assertions 2021-03-11 23:07:30 +01:00
xhprof_test.php MDL-65349 xhprof: Removed greedy matching from wildcard parsing 2019-10-23 11:08:27 +11:00
xhtml_container_stack_test.php
xmlize_test.php