@@ -118,15 +118,19 @@ public function getEmailMessageDataProvider(): array
118
118
*/
119
119
public function testEmailMessage ($ content , $ type ): void
120
120
{
121
- $ mimePart = $ this ->mimePartFactory ->create ([
122
- 'content ' => $ content ,
123
- 'description ' => $ this ->description ,
124
- 'type ' => $ type
125
- ]);
121
+ $ mimePart = $ this ->mimePartFactory ->create (
122
+ [
123
+ 'content ' => $ content ,
124
+ 'description ' => $ this ->description ,
125
+ 'type ' => $ type
126
+ ]
127
+ );
126
128
127
- $ mimeMessage = $ this ->mimeMessageFactory ->create ([
128
- 'parts ' => [$ mimePart ]
129
- ]);
129
+ $ mimeMessage = $ this ->mimeMessageFactory ->create (
130
+ [
131
+ 'parts ' => [$ mimePart ]
132
+ ]
133
+ );
130
134
131
135
$ this ->addressFactory = $ this ->di ->get (AddressFactory::class);
132
136
/** @var Address $addressTo */
@@ -194,21 +198,27 @@ public function testEmailMessage($content, $type): void
194
198
*/
195
199
public function testEmailMessageWithAttachment (): void
196
200
{
197
- $ mimePartMain = $ this ->mimePartFactory ->create ([
198
- 'content ' => 'Test ' ,
199
- 'description ' => $ this ->description ,
200
- 'type ' => MimeInterface::TYPE_TEXT
201
- ]);
202
- $ mimePartAttachment = $ this ->mimePartFactory ->create ([
203
- 'content ' => $ this ->getXmlContent (),
204
- 'disposition ' => MimeInterface::DISPOSITION_ATTACHMENT ,
205
- 'fileName ' => self ::ATTACHMENT_FILE_NAME ,
206
- 'type ' => self ::XML_TYPE
207
- ]);
201
+ $ mimePartMain = $ this ->mimePartFactory ->create (
202
+ [
203
+ 'content ' => 'Test ' ,
204
+ 'description ' => $ this ->description ,
205
+ 'type ' => MimeInterface::TYPE_TEXT
206
+ ]
207
+ );
208
+ $ mimePartAttachment = $ this ->mimePartFactory ->create (
209
+ [
210
+ 'content ' => $ this ->getXmlContent (),
211
+ 'disposition ' => MimeInterface::DISPOSITION_ATTACHMENT ,
212
+ 'fileName ' => self ::ATTACHMENT_FILE_NAME ,
213
+ 'type ' => self ::XML_TYPE
214
+ ]
215
+ );
208
216
209
- $ mimeMessage = $ this ->mimeMessageFactory ->create ([
210
- 'parts ' => [$ mimePartMain , $ mimePartAttachment ]
211
- ]);
217
+ $ mimeMessage = $ this ->mimeMessageFactory ->create (
218
+ [
219
+ 'parts ' => [$ mimePartMain , $ mimePartAttachment ]
220
+ ]
221
+ );
212
222
213
223
$ this ->addressFactory = $ this ->di ->get (AddressFactory::class);
214
224
/** @var Address $addressTo */
@@ -242,7 +252,8 @@ public function testEmailMessageWithAttachment(): void
242
252
private function getXmlContent (): string
243
253
{
244
254
return '<?xml version="1.0"?>
245
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
255
+ <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
256
+ xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
246
257
<type name="Magento\Framework\Console\CommandList">
247
258
<arguments>
248
259
<argument name="commands" xsi:type="array">
0 commit comments