Skip to content

Commit ca2d732

Browse files
committed
Merge remote-tracking branch 'origin/MC-31292' into 2.4-develop-pr16
2 parents 047f5b9 + 34c63d2 commit ca2d732

File tree

5 files changed

+8
-264
lines changed

5 files changed

+8
-264
lines changed

app/code/Magento/Persistent/Model/Checkout/GuestPaymentInformationManagementPlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Plugin to convert shopping cart from persistent cart to guest cart before order save when customer not logged in
14+
*
15+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1416
*/
1517
class GuestPaymentInformationManagementPlugin
1618
{
@@ -93,7 +95,7 @@ public function __construct(
9395
* @return void
9496
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
9597
*/
96-
public function beforeSavePaymentInformationAndPlaceOrder(
98+
public function beforeSavePaymentInformation(
9799
GuestPaymentInformationManagement $subject,
98100
$cartId,
99101
$email,

app/code/Magento/Persistent/Observer/PreventExpressCheckoutObserver.php

Lines changed: 0 additions & 89 deletions
This file was deleted.

app/code/Magento/Persistent/Test/Unit/Model/Checkout/GuestPaymentInformationManagementPluginTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testBeforeSavePaymentInformationAndPlaceOrderCartConvertsToGuest
111111
$collectionMock->expects($this->once())->method('walk')->with($walkMethod, $walkArgs);
112112
$this->cartRepositoryMock->expects($this->once())->method('save')->with($quoteMock);
113113

114-
$this->plugin->beforeSavePaymentInformationAndPlaceOrder(
114+
$this->plugin->beforeSavePaymentInformation(
115115
$this->subjectMock,
116116
$cartId,
117117
$email,
@@ -134,7 +134,7 @@ public function testBeforeSavePaymentInformationAndPlaceOrderShoppingCartNotPers
134134
$this->persistentSessionMock->expects($this->once())->method('isPersistent')->willReturn(true);
135135
$this->customerSessionMock->expects($this->once())->method('isLoggedIn')->willReturn(false);
136136

137-
$this->plugin->beforeSavePaymentInformationAndPlaceOrder(
137+
$this->plugin->beforeSavePaymentInformation(
138138
$this->subjectMock,
139139
$cartId,
140140
$email,
@@ -155,7 +155,7 @@ public function testBeforeSavePaymentInformationAndPlaceOrderPersistentSessionNo
155155

156156
$this->persistentSessionMock->expects($this->once())->method('isPersistent')->willReturn(false);
157157

158-
$this->plugin->beforeSavePaymentInformationAndPlaceOrder(
158+
$this->plugin->beforeSavePaymentInformation(
159159
$this->subjectMock,
160160
$cartId,
161161
$email,
@@ -177,7 +177,7 @@ public function testBeforeSavePaymentInformationAndPlaceOrderCustomerSessionInLo
177177
$this->persistentSessionMock->expects($this->once())->method('isPersistent')->willReturn(true);
178178
$this->customerSessionMock->expects($this->once())->method('isLoggedIn')->willReturn(true);
179179

180-
$this->plugin->beforeSavePaymentInformationAndPlaceOrder(
180+
$this->plugin->beforeSavePaymentInformation(
181181
$this->subjectMock,
182182
$cartId,
183183
$email,
@@ -201,7 +201,7 @@ public function testBeforeSavePaymentInformationAndPlaceOrderQuoteManagerNotInPe
201201
$this->customerSessionMock->expects($this->once())->method('isLoggedIn')->willReturn(false);
202202
$this->quoteManagerMock->expects($this->once())->method('isPersistent')->willReturn(false);
203203

204-
$this->plugin->beforeSavePaymentInformationAndPlaceOrder(
204+
$this->plugin->beforeSavePaymentInformation(
205205
$this->subjectMock,
206206
$cartId,
207207
$email,

app/code/Magento/Persistent/Test/Unit/Observer/PreventExpressCheckoutObserverTest.php

Lines changed: 0 additions & 168 deletions
This file was deleted.

app/code/Magento/Persistent/etc/frontend/events.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<observer name="persistent_session" instance="Magento\Persistent\Observer\RenewCookieObserver" />
3535
<observer name="persistent_quote" instance="Magento\Persistent\Observer\CheckExpirePersistentQuoteObserver" />
3636
<observer name="persistent_customer" instance="Magento\Persistent\Observer\EmulateCustomerObserver" />
37-
<observer name="persistent_checkout" instance="Magento\Persistent\Observer\PreventExpressCheckoutObserver" />
3837
</event>
3938
<event name="customer_customer_authenticated">
4039
<observer name="persistent" instance="Magento\Persistent\Observer\CustomerAuthenticatedEventObserver" />

0 commit comments

Comments
 (0)