@@ -197,11 +197,14 @@ public function testEmailMessage($content, $type): void
197
197
. '> ' ;
198
198
$ this ->assertContains ($ ccString , $ message ->toString ());
199
199
$ this ->assertContains ('Bcc: ' . $ bcc [0 ]->getEmail (), $ message ->toString ());
200
- $ contentDescription = 'Content-Description: =?utf -8?Q? '
200
+ $ contentDescription = 'Content-Description: =?UTF -8?Q? '
201
201
. str_replace (' ' , '=20 ' , $ this ->description )
202
202
. '?= ' ;
203
203
$ this ->assertContains ($ contentDescription , $ message ->toString ());
204
- $ this ->assertContains ('Subject: ' . $ this ->subject , $ message ->toString ());
204
+ $ subject = 'Subject: =?UTF-8?Q? '
205
+ . str_replace (' ' , '=20 ' , $ this ->subject )
206
+ . '?= ' ;
207
+ $ this ->assertContains ($ subject , $ message ->toString ());
205
208
$ this ->assertContains ($ content , $ message ->toString ());
206
209
//tests address factory
207
210
$ this ->assertInstanceOf (Address::class, $ message ->getTo ()[0 ]);
@@ -274,7 +277,7 @@ public function testEmailMessageWithAttachment(): void
274
277
private function getXmlContent (): string
275
278
{
276
279
return '<?xml version="1.0"?>
277
- <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
280
+ <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
278
281
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
279
282
<type name="Magento\Framework\Console\CommandList">
280
283
<arguments>
0 commit comments