moodle/calendar/tests
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
..
behat MDL-69391 behat: Grammar correction in feature 2020-09-03 11:34:47 +08:00
fixtures MDL-37624 calendar: string and behat testing fixes 2018-06-29 10:46:57 +08:00
action_event_test.php MDL-58866 core_calendar: allow component events 2020-05-19 19:04:13 +02:00
action_factory_test.php MDL-58430 core_calendar: Keep interfaces with implementations 2017-04-04 11:01:55 +01:00
action_test.php MDL-57730 core_calendar: Action interface aware of actionability 2017-04-03 11:36:33 +08:00
calendar_event_exporter_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
calendar_information_test.php MDL-62742 core: rename coursecat->core_course_category 2018-08-28 11:36:23 +02:00
calendartype_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
calendartype_test_example.php MDL-42537 calendar: locale charset on windows will come from calendartype 2013-11-04 15:54:19 +08:00
cm_info_proxy_test.php MDL-58688 calendar: retrieve event module without db queries 2017-05-04 16:53:19 +08:00
container_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
coursecat_proxy_test.php MDL-62742 core: rename coursecat->core_course_category 2018-08-28 11:36:23 +02:00
event_description_test.php MDL-57599 core_calendar: Add action event class 2017-04-03 11:35:38 +08:00
event_factory_test.php MDL-66612 calendar: Change global events to site events 2019-10-21 09:33:01 +02:00
event_mapper_test.php MDL-66716 calendar: Add usermidnight property for events. 2020-08-10 11:36:29 +10:00
event_test.php MDL-66716 calendar: Add usermidnight property for events. 2020-08-10 11:36:29 +10:00
event_times_test.php MDL-66716 calendar: Add usermidnight property for events. 2020-08-10 11:36:29 +10:00
event_vault_test.php MDL-67494 calendar: set userid to zero for shared events 2021-03-03 16:06:32 +08:00
events_related_objects_cache_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
events_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:00 +02:00
externallib_test.php MDL-67494 calendar: set userid to zero for shared events 2021-03-03 16:06:32 +08:00
helpers.php MDL-66716 calendar: Add usermidnight property for events. 2020-08-10 11:36:29 +10:00
lib_test.php MDL-67673 phpunit: Remove deprecated assertEquals() params 2020-10-21 12:46:00 +02:00
local_api_test.php MDL-67494 calendar: set userid to zero for shared events 2021-03-03 16:06:32 +08:00
privacy_test.php MDL-67494 calendar: privacy provider should not delete shared events 2021-03-03 16:06:32 +08:00
raw_event_retrieval_strategy_test.php MDL-67673 phpunit: Remove deprecated assertEquals() params 2020-10-21 12:46:00 +02:00
repeat_event_collection_test.php MDL-66716 calendar: Add usermidnight property for events. 2020-08-10 11:36:29 +10:00
rrule_manager_test.php MDL-71036 phpunit: assertContains() now performs strict comparison 2021-03-11 23:04:31 +01:00
std_proxy_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00