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-13 18:12:48 +08:00
parent b8b905cd90
commit bb0aeafb25
+2 -1
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();