mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
7899cd4f6c
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.