moodle/enrol/paypal
Eloy Lafuente (stronk7) 8a14a7bd22 MDL-71036 phpunit: assertContains() now performs strict comparison
The methods assertContains() and assertNotContains() now perform
strict (type and value) comparison, pretty much like assertSame()
does.

A couple of new assertContainsEquals() and assertNotContainsEquals()
methods have been created to provide old (non-strict) behavior, pretty
much like assertEquals() do.

Apart from replacing the calls needing a relaxed comparison to those
new methods, there are also a couple of alternative, about how to
fix this, depending of every case:

- If the test is making any array_values() conversion, then it's better
  to remove that conversion and use assertArrayHasKey(), that is not
  strict.
- Sometimes if may be also possible to, simply, cast the expectation
  to the exact type coming in the array. I've not applied this technique
  to any of the cases in core.

Link: https://github.com/sebastianbergmann/phpunit/issues/3426
2021-03-11 23:04:31 +01:00
..
classes MDL-63634 enrol_paypal: Improve query performance 2018-10-26 19:35:57 +11:00
cli MDL-32387 add paypal enrolment expiration action 2013-01-12 15:59:25 +01:00
db MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps 2021-01-13 19:11:19 +01:00
lang/en MDL-62763 lang: Merge English strings from the en_fix language pack 2018-07-02 11:15:26 +02:00
pix MDL-50175 graphics: Optimized SVGs with SVGO. 2016-02-25 11:56:42 +00:00
tests MDL-71036 phpunit: assertContains() now performs strict comparison 2021-03-11 23:04:31 +01:00
enrol.html MDL-38408 always validate PayPal dates and cost, improve float formatting 2013-05-25 22:47:28 +02:00
ipn.php MDL-55188 events: First deprecation of eventslib.php 2018-07-30 09:23:54 +08:00
lib.php MDL-63603 enrol: Add Indian Rupee to paypal enrolment currencies 2018-10-09 18:19:14 -03:00
return.php MDL-39386 fix phpdocs packages in enrol 2013-04-27 13:41:32 +02:00
settings.php MDL-63683 enrol: Fix plugin settings when no role has student archetype 2020-12-04 09:09:37 +01:00
unenrolself.php MDL-40909 core_enrol: removed 'unenrol' add_to_log calls 2014-01-27 19:52:55 -08:00
version.php MDL-69475 versions: bump all versions and requires in master 2020-08-18 00:47:15 +02:00