Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/announcementcenter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-10-24 15:12:03 +0300
committerJulius Härtl <jus@bitgrid.net>2022-10-24 17:21:36 +0300
commite9b91d5e37e3b685261ec493458119325ae2b654 (patch)
tree56a756fcb30fc2d70e43f85a6562750f17e0aae6 /tests
parent0e1a09770aa967999f382580a0561324ea627c47 (diff)
Skip users without a valid email address
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/BackgroundJobTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/BackgroundJobTest.php b/tests/BackgroundJobTest.php
index 5ef70b6..87f0e36 100644
--- a/tests/BackgroundJobTest.php
+++ b/tests/BackgroundJobTest.php
@@ -387,6 +387,10 @@ class BackgroundJobTest extends TestCase {
->method('setTo')
->willReturnSelf();
+ $this->mailer->expects(self::any())
+ ->method('validateMailAddress')
+ ->willReturn(true);
+
$job = $this->getJob();
$this->userManager->expects(self::once())
->method('callForSeenUsers')