From dad16f217ab75e4ec05d0b0e54ee2c23bf8a8ba7 Mon Sep 17 00:00:00 2001 From: Renaat Debleu Date: Sat, 5 Oct 2024 19:20:11 +0000 Subject: [PATCH] code review --- tests/hook_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hook_test.php b/tests/hook_test.php index be190cc..ef20720 100644 --- a/tests/hook_test.php +++ b/tests/hook_test.php @@ -367,7 +367,7 @@ public function test_future_delete(): void { $this->assertEquals(3, $DB->count_records('course', [])); delete_course($this->course1, false); $this->assertEquals(2, $DB->count_records('course', [])); - $this->assertEquals(3, $DB->count_records('enrol', [])); + $this->assertGreaterThan(2, $DB->count_records('enrol', [])); $this->assertEquals(1, $DB->count_records('user_enrolments', [])); $this->assertEquals(0, $DB->count_records('task_adhoc', ['component' => 'enrol_coursecompleted'])); }