From 3bbccf2c3c553ac359c2e0ef0054fc731ca0de38 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 20 May 2021 18:31:23 +0300 Subject: [PATCH] rename --- application/Espo/Core/Mail/Importer.php | 2 +- application/Espo/Services/EmailAccount.php | 2 +- application/Espo/Services/InboundEmail.php | 2 +- tests/unit/Espo/Core/Mail/ImporterTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Espo/Core/Mail/Importer.php b/application/Espo/Core/Mail/Importer.php index a5e07ddd20..2c8bce9d79 100644 --- a/application/Espo/Core/Mail/Importer.php +++ b/application/Espo/Core/Mail/Importer.php @@ -83,7 +83,7 @@ class Importer $this->filtersMatcher = new FiltersMatcher(); } - public function importMessage( + public function import( MessageWrapper $message, ?string $assignedUserId = null, array $teamsIdList = [], diff --git a/application/Espo/Services/EmailAccount.php b/application/Espo/Services/EmailAccount.php index 7ab6590bc8..43969e4dc7 100644 --- a/application/Espo/Services/EmailAccount.php +++ b/application/Espo/Services/EmailAccount.php @@ -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) { diff --git a/application/Espo/Services/InboundEmail.php b/application/Espo/Services/InboundEmail.php index 1916532c33..df0a87be61 100644 --- a/application/Espo/Services/InboundEmail.php +++ b/application/Espo/Services/InboundEmail.php @@ -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 ); } diff --git a/tests/unit/Espo/Core/Mail/ImporterTest.php b/tests/unit/Espo/Core/Mail/ImporterTest.php index 6efd28b971..cacdaf956b 100644 --- a/tests/unit/Espo/Core/Mail/ImporterTest.php +++ b/tests/unit/Espo/Core/Mail/ImporterTest.php @@ -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'));