Skip to content

Commit 41119cb

Browse files
author
Oleh Posyniak
committed
Merge remote-tracking branch 'remotes/Tango-CE/MAGETWO-44045' into MAGETWO-44772_pr_bugs
2 parents 2276cf6 + e9aa786 commit 41119cb

File tree

9 files changed

+371
-358
lines changed

9 files changed

+371
-358
lines changed

app/code/Magento/Newsletter/Test/Unit/Model/Queue/TransportBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testGetTransport(
103103

104104
$transport = $this->getMock('\Magento\Framework\Mail\TransportInterface');
105105

106-
$this->_mailTransportFactoryMock->expects(
106+
$this->mailTransportFactoryMock->expects(
107107
$this->at(0)
108108
)->method(
109109
'create'

app/code/Magento/User/Model/User.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ public function sendPasswordResetConfirmationEmail()
369369
{
370370
$templateId = $this->_config->getValue(self::XML_PATH_FORGOT_EMAIL_TEMPLATE);
371371
$transport = $this->_transportBuilder->setTemplateIdentifier($templateId)
372+
->setTemplateModel('Magento\Email\Model\BackendTemplate')
372373
->setTemplateOptions(['area' => FrontNameResolver::AREA_CODE, 'store' => Store::DEFAULT_STORE_ID])
373374
->setTemplateVars(['user' => $this, 'store' => $this->_storeManager->getStore(Store::DEFAULT_STORE_ID)])
374375
->setFrom($this->_config->getValue(self::XML_PATH_FORGOT_EMAIL_IDENTITY))
@@ -388,6 +389,7 @@ public function sendPasswordResetNotificationEmail()
388389
{
389390
$templateId = $this->_config->getValue(self::XML_PATH_RESET_PASSWORD_TEMPLATE);
390391
$transport = $this->_transportBuilder->setTemplateIdentifier($templateId)
392+
->setTemplateModel('Magento\Email\Model\BackendTemplate')
391393
->setTemplateOptions(['area' => FrontNameResolver::AREA_CODE, 'store' => Store::DEFAULT_STORE_ID])
392394
->setTemplateVars(['user' => $this, 'store' => $this->_storeManager->getStore(Store::DEFAULT_STORE_ID)])
393395
->setFrom($this->_config->getValue(self::XML_PATH_FORGOT_EMAIL_IDENTITY))

0 commit comments

Comments
 (0)