aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2025-07-20 20:53:16 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2025-07-20 20:53:16 +0200
commit339ad8d4cc2e9cb01383b864c4db74ce2ce1665e (patch)
tree150e9264fb6ef10c5d4bfd618c4e9776f1641d35
parentcc4fa5fbcf52a30cbad6f0f5cd1b00a57a8c0f93 (diff)
downloadnextcloud-server-feat/imailaddressvalidator.tar.gz
nextcloud-server-feat/imailaddressvalidator.zip
fixup! refactor: use IEmailValidator.isValid instead of IMailer.validateEmailAddressfeat/imailaddressvalidator
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--apps/files_sharing/tests/Controller/ShareAPIControllerTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
index 0ecaaf657d1..28115a30478 100644
--- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
@@ -172,6 +172,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])->onlyMethods(['formatShare'])
->getMock();
@@ -856,6 +857,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])
->onlyMethods(['canAccessShare'])
@@ -1488,6 +1490,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])
->onlyMethods(['formatShare'])
@@ -1876,6 +1879,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])->onlyMethods(['formatShare'])
->getMock();
@@ -1975,6 +1979,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])->onlyMethods(['formatShare'])
->getMock();
@@ -2402,6 +2407,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])->onlyMethods(['formatShare'])
->getMock();
@@ -2474,6 +2480,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])->onlyMethods(['formatShare'])
->getMock();
@@ -2713,6 +2720,7 @@ class ShareAPIControllerTest extends TestCase {
$this->factory,
$this->mailer,
$this->tagManager,
+ $this->getEmailValidatorWithStrictEmailCheck(),
$this->currentUser,
])->onlyMethods(['formatShare'])
->getMock();