Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EsdrasCaleb committed Apr 29, 2024
1 parent 1347a7d commit ff8ba62
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/tool_deletemessage_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function setUp(): void {
$this->messagesink = $this->redirectMessages();
$this->resetAfterTest();
}

/**
* Make message to tests
* @return int message id
Expand All @@ -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);
Expand Down

0 comments on commit ff8ba62

Please sign in to comment.