mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 16:40:07 +01:00
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:
parent
cd072308e5
commit
4b2834439e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user