Skip to content

Commit

Permalink
fixup! fix: honour MDN requests
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jun 7, 2024
1 parent f159cd2 commit bc77447
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Unit/Controller/DraftsControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public function testCreate(): void {
$message->setType(LocalMessage::TYPE_DRAFT);
$message->setSendAt(null);
$message->setUpdatedAt(123456);
$message->setRequestMdn(false);
$to = [['label' => 'Lewis', 'email' => '[email protected]']];
$cc = [['label' => 'Pierre', 'email' => '[email protected]']];

Expand Down Expand Up @@ -264,6 +265,7 @@ public function testCreateFromDraft(): void {
$message->setType(LocalMessage::TYPE_DRAFT);
$message->setSendAt(null);
$message->setUpdatedAt(123456);
$message->setRequestMdn(false);
$to = [['label' => 'Lewis', 'email' => '[email protected]']];
$cc = [['label' => 'Pierre', 'email' => '[email protected]']];

Expand Down Expand Up @@ -298,7 +300,8 @@ public function testCreateFromDraft(): void {
$message->getInReplyToMessageId(),
null,
null,
1
1,
false
);

$this->assertEquals($expected, $actual);
Expand All @@ -316,6 +319,7 @@ public function testCreateWithEmptyRecipients(): void {
$message->setType(LocalMessage::TYPE_DRAFT);
$message->setSendAt(null);
$message->setUpdatedAt(123456);
$message->setRequestMdn(false);

$account = new Account(new MailAccount());
$this->accountService->expects(self::once())
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Controller/OutboxControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ public function testCreate(): void {
$message->setSmimeEncrypt(false);
$message->setInReplyToMessageId('abc');
$message->setType(LocalMessage::TYPE_OUTGOING);
$message->setRequestMdn(false);
$to = [['label' => 'Lewis', 'email' => '[email protected]']];
$cc = [['label' => 'Pierre', 'email' => '[email protected]']];

Expand Down

0 comments on commit bc77447

Please sign in to comment.