This commit is contained in:
Yuri Kuznetsov
2021-09-11 08:57:34 +03:00
parent 9bb0950c12
commit c5d6b7d053
3 changed files with 4 additions and 4 deletions

View File

@@ -521,7 +521,7 @@ class Sender
}
}
$attachmentInlineList = $email->getInlineAttachments();
$attachmentInlineList = $email->getInlineAttachmentList();
if (!empty($attachmentInlineList)) {
foreach ($attachmentInlineList as $a) {

View File

@@ -235,7 +235,7 @@ class Email extends Entity
$body = $this->get('body') ?? '';
if (!empty($body)) {
$attachmentList = $this->getInlineAttachments();
$attachmentList = $this->getInlineAttachmentList();
foreach ($attachmentList as $attachment) {
$id = $attachment->getId();
@@ -258,7 +258,7 @@ class Email extends Entity
/**
* @return Attachment[]
*/
public function getInlineAttachments(): array
public function getInlineAttachmentList(): array
{
$idList = [];

View File

@@ -452,7 +452,7 @@ class EmailTest extends \PHPUnit\Framework\TestCase
->method('getEntity')
->with('Attachment', 'Id01');
$this->email->getInlineAttachments();
$this->email->getInlineAttachmentList();
}
function testGetBodyForSending()