diff --git a/tests/tool_deletemessage_test.php b/tests/tool_deletemessage_test.php index 47828e0..7930e1c 100644 --- a/tests/tool_deletemessage_test.php +++ b/tests/tool_deletemessage_test.php @@ -45,7 +45,7 @@ public function setUp(): void { $this->messagesink = $this->redirectMessages(); $this->resetAfterTest(); } - + /** * Make message to tests * @return int message id @@ -63,18 +63,6 @@ private function make_message() { $time = time(); } - if ($notification) { - $record = new \stdClass(); - $record->useridfrom = $userfrom->id; - $record->useridto = $userto->id; - $record->subject = 'No subject'; - $record->fullmessage = $message; - $record->smallmessage = $message; - $record->timecreated = $time; - - return $DB->insert_record('notifications', $record); - } - if ($userfrom->id == $userto->id) { // It's a self conversation. $conversation = \core_message\api::get_self_conversation($userfrom->id);