From 33f3431cab69de5b931c10ced8738d58b3f7498e Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Wed, 25 Sep 2024 22:23:30 +0200 Subject: [PATCH] MDL-81230 bigbluebutton: Remove deprecated adhoc tasks Signed-off-by: Daniel Ziegenberg --- ...luebutton_module_disabled_notification.php | 45 ------------------- .../classes/task/send_notification.php | 45 ------------------- .../tests/task/send_notification_test.php | 41 ----------------- 3 files changed, 131 deletions(-) delete mode 100644 mod/bigbluebuttonbn/classes/task/send_bigbluebutton_module_disabled_notification.php delete mode 100644 mod/bigbluebuttonbn/classes/task/send_notification.php delete mode 100644 mod/bigbluebuttonbn/tests/task/send_notification_test.php diff --git a/mod/bigbluebuttonbn/classes/task/send_bigbluebutton_module_disabled_notification.php b/mod/bigbluebuttonbn/classes/task/send_bigbluebutton_module_disabled_notification.php deleted file mode 100644 index cb5fffcdcbd..00000000000 --- a/mod/bigbluebuttonbn/classes/task/send_bigbluebutton_module_disabled_notification.php +++ /dev/null @@ -1,45 +0,0 @@ -. - -declare(strict_types=1); - -namespace mod_bigbluebuttonbn\task; - -use core\task\adhoc_task; -use core\message\message; -use mod_bigbluebuttonbn\local\config; - -/** - * Deprecated Ad-hoc task to send a notification related to the disabling of the BigBlueButton activity module. - * - * The ad-hoc tasks sends a notification to the administrator informing that the BigBlueButton activity module has - * been disabled and they are required to confirm their acceptance of the data processing agreement prior to - * re-enabling it. - * - * @package mod_bigbluebuttonbn - * @copyright 2022 Mihail Geshoski - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class send_bigbluebutton_module_disabled_notification extends adhoc_task { - /** - * Execute the task. - */ - public function execute() { - // Log the debug message. - $message = "Attempted to run deprecated send_bigbluebutton_module_disabled_notification task."; - debugging($message, DEBUG_DEVELOPER); - } -} diff --git a/mod/bigbluebuttonbn/classes/task/send_notification.php b/mod/bigbluebuttonbn/classes/task/send_notification.php deleted file mode 100644 index bc2db0850ef..00000000000 --- a/mod/bigbluebuttonbn/classes/task/send_notification.php +++ /dev/null @@ -1,45 +0,0 @@ -. - -namespace mod_bigbluebuttonbn\task; -use core\task\adhoc_task; - -/** - * Class containing the deprecated class for send_notification event in BBB. - * - * @package mod_bigbluebuttonbn - * @copyright 2021 Andrew Lyons - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ -class send_notification extends adhoc_task { - /** - * Execute the task. - */ - public function execute() { - // Log the debug message. - $message = $this->generate_message(); - debugging($message, DEBUG_DEVELOPER); - } - - /** - * Output the debug log message. - * - * @return string The debug log message. - */ - public function generate_message() { - return "Attempted to run deprecated implementation of send_notification task."; - } -} diff --git a/mod/bigbluebuttonbn/tests/task/send_notification_test.php b/mod/bigbluebuttonbn/tests/task/send_notification_test.php deleted file mode 100644 index 7d9bf39b284..00000000000 --- a/mod/bigbluebuttonbn/tests/task/send_notification_test.php +++ /dev/null @@ -1,41 +0,0 @@ -. - -namespace mod_bigbluebuttonbn\task; - -use advanced_testcase; - -/** - * Class containing the scheduled task for lti module. - * - * @package mod_bigbluebuttonbn - * @copyright 2019 onwards, Blindside Networks Inc - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - * @covers \mod_bigbluebuttonbn\task\send_notification - * @coversDefaultClass \mod_bigbluebuttonbn\task\send_notification - */ -class send_notification_test extends advanced_testcase { - /** - * Test that the debug message is correctly output. - * - */ - public function test_generate_message(): void { - $this->resetAfterTest(); - $task = new send_notification(); - $message = $task->generate_message(); - $this->assertEquals("Attempted to run deprecated implementation of send_notification task.", $message); - } -}