Skip to content

Commit

Permalink
Fix setPriority Call for MailChannel (#41120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki authored Feb 21, 2022
1 parent a1671d4 commit 40abea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Notifications/Channels/MailChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function buildMessage($mailMessage, $notifiable, $notification, $messa
$this->addAttachments($mailMessage, $message);

if (! is_null($message->priority)) {
$mailMessage->setPriority($message->priority);
$mailMessage->priority($message->priority);
}

if ($message->tags) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function testMailIsSent()

$message->shouldReceive('subject')->once()->with('Test Mail Notification');

$message->shouldReceive('setPriority')->once()->with(1);
$message->shouldReceive('priority')->once()->with(1);

$closure($message);

Expand Down Expand Up @@ -144,7 +144,7 @@ public function testMailIsSentToNamedAddress()

$message->shouldReceive('subject')->once()->with('Test Mail Notification');

$message->shouldReceive('setPriority')->once()->with(1);
$message->shouldReceive('priority')->once()->with(1);

$closure($message);

Expand Down

0 comments on commit 40abea8

Please sign in to comment.