aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-10-17 21:15:20 +0200
committerGitHub <noreply@github.com>2024-10-17 21:15:20 +0200
commitb2c8a104442a0d4c3924ff183cc5977841d71827 (patch)
treeb4e5fdecfcd48d25e58f386beb9b3b67080b961a /tests
parent658aa1a2ddf2b0eee0b32d907ce49bbbc5fd0460 (diff)
parent35933a62f7499ad3805bf074faca4a5ef3a28a57 (diff)
downloadnextcloud-server-b2c8a104442a0d4c3924ff183cc5977841d71827.tar.gz
nextcloud-server-b2c8a104442a0d4c3924ff183cc5977841d71827.zip
Merge pull request #48764 from nextcloud/backport/48539/stable29
[stable29] fix(message): Fix logic of Mail test
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Mail/MessageTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Mail/MessageTest.php b/tests/lib/Mail/MessageTest.php
index 1d309ca742d..2040e933b0d 100644
--- a/tests/lib/Mail/MessageTest.php
+++ b/tests/lib/Mail/MessageTest.php
@@ -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();
}