mirror of
https://github.com/moodle/moodle.git
synced 2025-03-15 05:00:06 +01:00
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.