Skip to content

Commit c32d10c

Browse files
author
Evgeni Obukhovsky
committed
update unit tests
1 parent a42284b commit c32d10c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/Creditmemo/Sender/EmailSenderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public function testSend($configValue, $forceSyncMode, $isComment, $emailSending
262262
'formattedShippingAddress' => 'Formatted address',
263263
'formattedBillingAddress' => 'Formatted address',
264264
];
265+
$transport = new \Magento\Framework\DataObject($transport);
265266

266267
$this->eventManagerMock->expects($this->once())
267268
->method('dispatch')
@@ -275,7 +276,7 @@ public function testSend($configValue, $forceSyncMode, $isComment, $emailSending
275276

276277
$this->templateContainerMock->expects($this->once())
277278
->method('setTemplateVars')
278-
->with($transport);
279+
->with($transport->getData());
279280

280281
$this->identityContainerMock->expects($this->once())
281282
->method('isEnabled')

app/code/Magento/Sales/Test/Unit/Model/Order/Invoice/Sender/EmailSenderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public function testSend($configValue, $forceSyncMode, $isComment, $emailSending
260260
'formattedShippingAddress' => 'Formatted address',
261261
'formattedBillingAddress' => 'Formatted address',
262262
];
263+
$transport = new \Magento\Framework\DataObject($transport);
263264

264265
$this->eventManagerMock->expects($this->once())
265266
->method('dispatch')
@@ -273,7 +274,7 @@ public function testSend($configValue, $forceSyncMode, $isComment, $emailSending
273274

274275
$this->templateContainerMock->expects($this->once())
275276
->method('setTemplateVars')
276-
->with($transport);
277+
->with($transport->getData());
277278

278279
$this->identityContainerMock->expects($this->once())
279280
->method('isEnabled')

app/code/Magento/Sales/Test/Unit/Model/Order/Shipment/Sender/EmailSenderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public function testSend($configValue, $forceSyncMode, $isComment, $emailSending
262262
'formattedShippingAddress' => 'Formatted address',
263263
'formattedBillingAddress' => 'Formatted address',
264264
];
265+
$transport = new \Magento\Framework\DataObject($transport);
265266

266267
$this->eventManagerMock->expects($this->once())
267268
->method('dispatch')
@@ -275,7 +276,7 @@ public function testSend($configValue, $forceSyncMode, $isComment, $emailSending
275276

276277
$this->templateContainerMock->expects($this->once())
277278
->method('setTemplateVars')
278-
->with($transport);
279+
->with($transport->getData());
279280

280281
$this->identityContainerMock->expects($this->once())
281282
->method('isEnabled')

0 commit comments

Comments
 (0)