MDL-69271 auth_ldap: Don't assume any ordering, just verify matches
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sat, 25 Jul 2020 18:29:02 +0000 (20:29 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 14 Aug 2020 11:40:06 +0000 (13:40 +0200)
commita59fc3fc568db5a3c62d68e0736283dd9b245c21
tree66894d47fd22b1e664935b62edd55e47cfec3c32
parenta0fc902eb184cd4097c8ab453ddc57964cd2dbd4
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