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

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Integration/Framework/ImapTestAccount.php')
-rw-r--r--tests/Integration/Framework/ImapTestAccount.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Integration/Framework/ImapTestAccount.php b/tests/Integration/Framework/ImapTestAccount.php
index 0dac89327..d8c814d67 100644
--- a/tests/Integration/Framework/ImapTestAccount.php
+++ b/tests/Integration/Framework/ImapTestAccount.php
@@ -42,12 +42,12 @@ trait ImapTestAccount {
*
* @return MailAccount
*/
- public function createTestAccount() {
+ public function createTestAccount(string $userId = null) {
/* @var $accountService AccountService */
$accountService = OC::$server->query(AccountService::class);
$mailAccount = new MailAccount();
- $mailAccount->setUserId($this->getTestAccountUserId());
+ $mailAccount->setUserId($userId ?? $this->getTestAccountUserId());
$mailAccount->setName('Tester');
$mailAccount->setEmail('user@domain.tld');
$mailAccount->setInboundHost('127.0.0.1');