moodle/favourites
Eloy Lafuente (stronk7) 7899cd4f6c MDL-67353 favourites: Random DB id matching solved
Depending on the tests executed it was possible to arrive
to favourites tests with 2 "concepts" (say userid and contextid,
or userid and itemid) having the same ID.

Then, the array_diff() operations used by some mock stuff in the
tests wrongly was returning matches by value, ultimately causing
the test to fail.

Now, the matching is performed using array_diff_assoc() that takes
keys into considation when performing the match.
2020-01-24 11:26:56 +01:00
..
classes MDL-65313 core_favourites: component scoped deletion now requires itemid 2019-05-07 16:26:46 +08:00
tests MDL-67353 favourites: Random DB id matching solved 2020-01-24 11:26:56 +01:00