moodle/contentbank/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 MDL-70726 behat: Fixing existing fail tests 2021-03-05 14:06:43 +07:00
external MDL-70941 contentbank: fix empty equality check when renaming content 2021-02-26 12:01:51 +01:00
fixtures MDL-69143 contentbank: add import file method to content 2020-07-29 17:49:50 +02:00
generator MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:49:57 -05:00
content_test.php MDL-69762 core_contentbank: let users hide their content 2021-02-15 13:49:57 -05:00
contentbank_test.php MDL-71036 phpunit: Mock->setMethods() silently deprecated 2021-03-11 23:07:31 +01:00
contenttype_test.php MDL-70941 contentbank: fix empty equality check when renaming content 2021-02-26 12:01:51 +01:00
privacy_test.php MDL-71036 phpunit: assertContains() now performs strict comparison 2021-03-11 23:07:31 +01:00