MDL-69271 auth_ldap: Don't assume any ordering, just verify matches
commit4ec7c29b3007aaed2030aa9c608b1db0119b0721
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sat, 25 Jul 2020 18:29:02 +0000 (25 20:29 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 14 Aug 2020 11:40:13 +0000 (14 13:40 +0200)
treecd92dc6cda8a2fefed87c7bb27db7d066db040d1
parentcf6cdd99d419bae4139c45f5b27bc842bf2da224
MDL-69271 auth_ldap: Don't assume any ordering, just verify matches

Both ldap or the DB can return information in a non-consistent
ordering leading to events to be generated in different order.

And current tests are, right now, assuming a given order.

Note this is a rare random, but it's happening, so better
fix it, see the issue for some more details.

So we just do the tests ordering immune, verifying that all the
expected events have been triggered and done. Irrespectively of their order.
auth/ldap/tests/plugin_test.php