Skip to content

Commit 6720ce9

Browse files
committed
ACP2E-1063: received duplicate emails after created an order from admin
1 parent b085a73 commit 6720ce9

File tree

1 file changed

+1
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder

1 file changed

+1
-1
lines changed

dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder/CreateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ private function verifyCreatedOrder($order, $shippingMethod)
826826
{
827827
/** Selectively check order data */
828828
$orderData = $order->getData();
829-
if ($this->getSendConfirmation() && !$order->getEmailSent()) {
829+
if ($this->model->getSendConfirmation() && !$order->getEmailSent()) {
830830
$this->emailSenderMock->expects($this->once())
831831
->method('send')
832832
->willReturn(true);

0 commit comments

Comments
 (0)