Skip to content

Commit 765e6c9

Browse files
committed
MCP-792: Wrong error message is sent in email if order is rejected because of disabled product
1 parent 3a317e2 commit 765e6c9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/code/Magento/Checkout/Test/Unit/Model/GuestPaymentInformationManagementTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,6 @@ public function testSavePaymentInformationAndPlaceOrderWithDisabledProduct()
259259
$billingAddressMock->expects($this->once())->method('setEmail')->with($email)->willReturnSelf();
260260

261261
$this->paymentMethodManagementMock->expects($this->never())->method('set')->with($cartId, $paymentMock);
262-
$phrase = new Phrase(__('Some of the products are disabled.'));
263-
$exception = new CouldNotSaveException($phrase);
264262
$this->model->savePaymentInformationAndPlaceOrder($cartId, $email, $paymentMock, $billingAddressMock);
265263
}
266264

0 commit comments

Comments
 (0)