Skip to content
Prev Previous commit
Next Next commit
fix(message): Fix logic of Mail test
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 7, 2024
commit e6cd1051dac570826c969c7e7372a38b192056fa
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