From 8497b32a63cb37c017b4bbb1a9bf38ca287048f7 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 4 Sep 2024 02:29:56 +0200 Subject: [PATCH] fix: test fails because array entries are not sorted --- tests/local/section/db_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/local/section/db_test.php b/tests/local/section/db_test.php index cfa6a16..2d8aa89 100644 --- a/tests/local/section/db_test.php +++ b/tests/local/section/db_test.php @@ -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)); } }