MDL-67518 phpunit: avoid DB sorting randomness in test
commite4ca875954b7616207875e7a6ad4609e6b8c35db
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 20 Apr 2020 20:52:04 +0000 (20 22:52 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 29 May 2020 14:26:01 +0000 (29 16:26 +0200)
tree5650ec8129db92a11464f053b056d5cf70b5da25
parent2e324c14bfdaf63b82e0aa835fed3a29c48cf006
MDL-67518 phpunit: avoid DB sorting randomness in test

While reading from mdl_config, sometimes this test was failing
because an order was being presumed. Now we convert the records
array to an associative one to perform tests against it.
blocks/tests/externallib_test.php