moodle/analytics/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-69107 user: Fix autocomplete usages 2020-12-16 07:50:56 +08:00
fixtures MDL-67217 unittest: usleep and windows don't get along well 2019-11-22 07:41:07 +08:00
analysis_test.php MDL-65680 analytics: Fix random failure on slow test environments 2019-05-24 10:59:13 +02:00
calculation_info_test.php MDL-66536 analytics: Indicators can add extra data for targets 2019-09-18 13:07:21 +08:00
community_of_inquiry_activities_completed_by.php MDL-59256 analytics: Move get_activities test scope 2017-11-03 12:42:20 +01:00
course_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
dataset_manager_test.php MDL-67673 phpunit: Remove deprecated assertContains() uses on strings 2020-10-21 12:46:00 +02:00
indicator_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
manager_test.php MDL-64739 analytics: Contexts autocomplete with ajax 2019-10-21 15:33:29 +08:00
model_test.php MDL-67673 phpunit: Remove deprecated assertInternalType() 2020-10-21 12:45:59 +02:00
prediction_actions_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
prediction_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
privacy_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
stats_test.php MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00