Skip to content

Commit d6d6265

Browse files
author
Bukatar, Anna
committed
MDVA-275: Emails from admin being sent out using default config’s email, not the specific store email
- Fixed unit test error
1 parent 9fc4c15 commit d6d6265

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/Email/SenderBuilderTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ class SenderBuilderTest extends \PHPUnit_Framework_TestCase
2929
*/
3030
protected $transportBuilder;
3131

32+
/**
33+
* @var \PHPUnit_Framework_MockObject_MockObject
34+
*/
35+
protected $storeMock;
36+
3237
protected function setUp()
3338
{
3439
$templateId = 'test_template_id';
@@ -58,7 +63,7 @@ protected function setUp()
5863
[
5964
'getEmailIdentity', 'getCustomerEmail',
6065
'getCustomerName', 'getTemplateOptions', 'getEmailCopyTo',
61-
'getCopyMethod'
66+
'getCopyMethod', 'getStore'
6267
],
6368
[],
6469
'',
@@ -99,6 +104,9 @@ protected function setUp()
99104
$this->identityContainerMock->expects($this->once())
100105
->method('getEmailIdentity')
101106
->will($this->returnValue($emailIdentity));
107+
$this->identityContainerMock->expects($this->once())
108+
->method('getStore')
109+
->will($this->returnValue($this->storeMock));
102110
$this->transportBuilder->expects($this->once())
103111
->method('setFrom')
104112
->with($this->equalTo($emailIdentity));

0 commit comments

Comments
 (0)