moodle/blocks
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
..
activity_modules MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
activity_results MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
admin_bookmarks MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
badges MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
blog_menu MDL-69454 core_search: consistent block searches 2020-09-21 11:54:46 +02:00
blog_recent MDL-70705 block_blog_recent: support multilang blog entry titles 2021-02-03 15:14:46 +01:00
blog_tags MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
calendar_month MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
calendar_upcoming MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
classes MDL-70528 h5pactivity: Fix block can't be added to h5pactivity page. 2021-01-26 15:19:01 +02:00
comments MDL-67673 phpunit: Remove deprecated assertEquals() params 2020-10-21 12:46:00 +02:00
completionstatus MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
course_list MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
course_summary MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
feedback MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
globalsearch MDL-69454 core_search: consistent block searches 2020-09-21 11:54:46 +02:00
glossary_random MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
html MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
login MDL-70424 auth: Avoid random changes to $CFG->auth 2021-02-23 11:40:57 +11:00
lp MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
mentees MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
mnet_hosts MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
myoverview MDL-67623 block overview: fix pagination regression 2020-12-14 13:15:26 +11:00
myprofile MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
navigation MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
news_items MDL-65792 mod_forum: show release time on timed posts 2020-10-27 08:58:26 +01:00
online_users MDL-45242 Lib: Replace calls to deprecated functions 2021-03-10 10:57:10 +00:00
private_files MDL-64554 user: make private files editor modal/ajax form 2021-02-17 18:06:57 +01:00
quiz_results MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
recent_activity MDL-66979 behat: Switch to generators 2021-01-22 14:52:11 +08:00
recentlyaccessedcourses MDL-70173 dashboard: ARIA role presentation conflicted the empty alt 2021-02-09 16:16:09 +11:00
recentlyaccesseditems MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
rss_client MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
search_forums MDL-69454 core_search: consistent block searches 2020-09-21 11:54:46 +02:00
section_links MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
selfcompletion MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
settings MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
site_main_menu MDL-67668 behat: Update tests for inplace editable field type 2020-11-23 09:01:19 +08:00
social_activities MDL-67668 behat: Update tests for inplace editable field type 2020-11-23 09:01:19 +08:00
starredcourses MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
tag_flickr MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
tag_youtube Merge branch 'MDL-70063-master-1' of git://github.com/mihailges/moodle 2020-11-11 16:32:08 +01:00
tags MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00
tests MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
timeline MDL-70173 dashboard: ARIA role presentation conflicted the empty alt 2021-02-09 16:16:09 +11:00
edit_form.php MDL-62206 blocks: do not add fixed form elements as hidden 2018-05-10 12:08:41 +08:00
index.html
moodleblock.class.php MDL-68084 blocks: check capability before getting content. 2020-05-12 19:23:36 +01:00
upgrade.txt MDL-65400 block: Support getting block settings via WS 2019-10-23 15:33:56 +02:00