mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(message): Fix logic of Mail test
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4219969c96
commit
e6cd1051da
1 changed files with 5 additions and 5 deletions
|
|
@ -91,23 +91,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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue