-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Mailer::send will always thrown an exception in case of errors d…
…uring delivery
- Loading branch information
1 parent
4d7271e
commit 4bfd453
Showing
4 changed files
with
10 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,16 +82,6 @@ public function testFailedDeliveryWithException(): void { | |
$this->assertIMipState($message, '5.0', 'REQUEST', 'Fellowship meeting'); | ||
} | ||
|
||
public function testFailedDelivery(): void { | ||
$this->mailer->method('send')->willReturn(['[email protected]']); | ||
$this->logger->expects(self::once())->method('error')->with('Unable to deliver message to {failed}', ['app' => 'dav', 'failed' => '[email protected]']); | ||
|
||
$message = $this->buildIMIPMessage('REQUEST'); | ||
|
||
$this->plugin->schedule($message); | ||
$this->assertIMipState($message, '5.0', 'REQUEST', 'Fellowship meeting'); | ||
} | ||
|
||
public function testDeliveryOfCancel(): void { | ||
$this->mailer->expects($this->once())->method('send'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters