Skip to content

Commit

Permalink
fix(message): Fix logic of Mail test
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 7, 2024
1 parent 4219969 commit e6cd105
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/lib/Mail/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,23 @@ public function testSetRecipients(): void {
$this->symfonyEmail
->expects($this->once())
->method('from')
->willReturn(new Address('[email protected]', 'Pierres General Store'));
->with(new Address('[email protected]', 'Pierres General Store'));
$this->symfonyEmail
->expects($this->once())
->method('to')
->willReturn(new Address('[email protected]', "Lewis' Tent Life"));
->with(new Address('[email protected]', "Lewis' Tent Life"));
$this->symfonyEmail
->expects($this->once())
->method('replyTo')
->willReturn(new Address('[email protected]', 'Penny'));
->with(new Address('[email protected]', 'Penny'));
$this->symfonyEmail
->expects($this->once())
->method('cc')
->willReturn(new Address('[email protected]', 'Gunther'));
->with(new Address('[email protected]', 'Gunther'));
$this->symfonyEmail
->expects($this->once())
->method('bcc')
->willReturn(new Address('[email protected]', 'Pam'));
->with(new Address('[email protected]', 'Pam'));

$this->message->setRecipients();
}
Expand Down

0 comments on commit e6cd105

Please sign in to comment.