moodle/admin/tool/langimport
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
..
amd MDL-70632 tool_langimport: search for available language packs. 2021-02-03 10:03:37 +00:00
classes MDL-70608 lang: Recommend running the scheduled task to update packs 2021-02-19 16:02:02 +01:00
db MDL-46210 langimport: task for updating langpacks 2014-10-05 14:25:45 +01:00
lang/en MDL-70608 lang: Recommend running the scheduled task to update packs 2021-02-19 16:02:02 +01:00
templates MDL-70608 lang: Recommend running the scheduled task to update packs 2021-02-19 16:02:02 +01:00
tests MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:04:31 +01:00
index.php Merge branch 'MDL-70608-master-langimportasync' of git://github.com/mudrd8mz/moodle 2021-03-09 16:42:52 +01:00
lib.php
settings.php
styles.css MDL-70632 tool_langimport: search for available language packs. 2021-02-03 10:03:37 +00:00
version.php MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00