This commit is contained in:
Yuri Kuznetsov
2021-05-20 18:31:23 +03:00
parent 810677014c
commit 3bbccf2c3c
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ class Importer
$this->filtersMatcher = new FiltersMatcher();
}
public function importMessage(
public function import(
MessageWrapper $message,
?string $assignedUserId = null,
array $teamsIdList = [],
+1 -1
View File
@@ -574,7 +574,7 @@ class EmailAccount extends Record implements
$email = null;
try {
$email = $importer->importMessage(
$email = $importer->import(
$message, $userId, $teamIdList, $userIdList, $filterCollection, $fetchOnlyHeader, $folderData
);
} catch (Exception $e) {
+1 -1
View File
@@ -531,7 +531,7 @@ class InboundEmail extends RecordService implements
$email = null;
try {
$email = $importer->importMessage(
$email = $importer->import(
$message, $userId, $teamIdList, $userIdList, $filterCollection, $fetchOnlyHeader, $folderData
);
}
+1 -1
View File
@@ -168,7 +168,7 @@ class ImporterTest extends \PHPUnit\Framework\TestCase
$message->setFullRawContent($contents);
$email = $importer->importMessage($message, null, ['teamTestId'], ['userTestId']);
$email = $importer->import($message, null, ['teamTestId'], ['userTestId']);
$this->assertEquals('test 3', $email->get('name'));