-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-72477: Bogus emails generated when the recipient name contain…
…s special characters
- Loading branch information
Bohdan Korablov
committed
Sep 20, 2017
1 parent
e95e842
commit f866101
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
dev/tests/integration/testsuite/Magento/Framework/Mail/MessageTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Framework\Mail; | ||
|
||
class MessageTest extends \PHPUnit\Framework\TestCase | ||
{ | ||
/** | ||
* @var Message | ||
*/ | ||
private $message; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
protected function setUp() | ||
{ | ||
$this->message = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() | ||
->create(Message::class); | ||
} | ||
|
||
public function testGetHeaderEncodingDefaultValue() | ||
{ | ||
$this->assertEquals(\Zend_Mime::ENCODING_BASE64, $this->message->getHeaderEncoding()); | ||
} | ||
|
||
public function testGetCharsetDefaultValue() | ||
{ | ||
$this->assertEquals('utf-8', $this->message->getCharset()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters