Skip to content

Commit

Permalink
fix: test fails because array entries are not sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Sep 4, 2024
1 parent 794e09d commit 8497b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/local/section/db_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ public function test_get_course_modules_by_section_id() {
$db_course_modules = db::get_course_modules_by_section_id($section_id);

// check result
$this->assertEquals([$course_module1->cmid, $course_module2->cmid], array_keys($db_course_modules));
$this->assertEqualsCanonicalizing([$course_module1->cmid, $course_module2->cmid], array_keys($db_course_modules));
}
}

0 comments on commit 8497b32

Please sign in to comment.