From 4c0ea1fca615beac9a0860c60e6a5dae9e96e2fa Mon Sep 17 00:00:00 2001 From: Markus Date: Mon, 30 Sep 2024 12:44:14 +0200 Subject: [PATCH] fix upgrade test --- tests/upgrade_test.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/upgrade_test.php b/tests/upgrade_test.php index a33eb16..deffd3f 100644 --- a/tests/upgrade_test.php +++ b/tests/upgrade_test.php @@ -30,6 +30,9 @@ public function test_upgrade_2024090900_completion_changes() { $course2_mod1 = $this->create_legacy_module($course2->id); $course_3_mod1 = $this->create_legacy_module($course3->id); + // mock global function upgrade_plugin_savepoint, required by upgrade.php/xmldb_local_adler_upgrade + function upgrade_plugin_savepoint($v1, $v2, $v3, $v4) {} + // call cud xmldb_local_adler_upgrade(2024090800);