MDL-76870 question: change assertion to assertEqualsCanonicalizing

By using that assertion the arrays will be sorted before comparison
preventing any Oracle sorting related failures.

Credits for the solution go to Tim Hunt!
This commit is contained in:
Simey Lameze 2023-01-12 17:12:18 +08:00
parent cd072308e5
commit 4b2834439e

View File

@ -83,7 +83,8 @@ class backup_test extends \advanced_testcase {
$this->assertTrue($precheck);
} else {
$precheckresults = $rc->get_precheck_results();
$this->assertEquals(['warnings' => $expectedprecheckwarning], $precheckresults);
$this->assertEqualsCanonicalizing($expectedprecheckwarning, $precheckresults['warnings']);
$this->assertCount(1, $precheckresults);
}
$rc->execute_plan();
$rc->destroy();