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:13:32 +08:00
parent d84283e8cc
commit 70bb1b7d0a
+2 -1
View File
@@ -88,7 +88,8 @@ class core_question_backup_testcase 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();