Merge pull request #48764 from nextcloud/backport/48539/stable29

[stable29] fix(message): Fix logic of Mail test
pull/48755/head
Joas Schilling 2024-10-17 21:15:20 +07:00 committed by GitHub
commit b2c8a10444
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

@ -92,23 +92,23 @@ class MessageTest extends TestCase {
$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();
}