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 <coding@schilljs.com>
  • 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('pierres-general-store@stardewvalley.com', 'Pierres General Store'));
->with(new Address('pierres-general-store@stardewvalley.com', 'Pierres General Store'));
$this->symfonyEmail
->expects($this->once())
->method('to')
->willReturn(new Address('lewis-tent@stardewvalley.com', "Lewis' Tent Life"));
->with(new Address('lewis-tent@stardewvalley.com', "Lewis' Tent Life"));
$this->symfonyEmail
->expects($this->once())
->method('replyTo')
->willReturn(new Address('penny@stardewvalley-library.co.edu', 'Penny'));
->with(new Address('penny@stardewvalley-library.co.edu', 'Penny'));
$this->symfonyEmail
->expects($this->once())
->method('cc')
->willReturn(new Address('gunther@stardewvalley-library.co.edu', 'Gunther'));
->with(new Address('gunther@stardewvalley-library.co.edu', 'Gunther'));
$this->symfonyEmail
->expects($this->once())
->method('bcc')
->willReturn(new Address('pam@stardewvalley-bus.com', 'Pam'));
->with(new Address('pam@stardewvalley-bus.com', 'Pam'));

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

0 comments on commit e6cd105

Please sign in to comment.