Skip to content

Commit 774cb4c

Browse files
committed
Remove unnecessary dependencies and fixed unit test case excessively long variable name
1 parent 48923e1 commit 774cb4c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

app/code/Magento/Paypal/Test/Unit/Model/ExpressTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function testAssignData()
161161
{
162162
$transportValue = 'something';
163163

164-
$extensionAttributeMock = $this->getMockForAbstractClass(
164+
$extensionAttribute = $this->getMockForAbstractClass(
165165
\Magento\Quote\Api\Data\PaymentExtensionInterface::class,
166166
[],
167167
'',
@@ -175,7 +175,7 @@ public function testAssignData()
175175
Express\Checkout::PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT => $transportValue,
176176
Express\Checkout::PAYMENT_INFO_TRANSPORT_PAYER_ID => $transportValue,
177177
Express\Checkout::PAYMENT_INFO_TRANSPORT_TOKEN => $transportValue,
178-
\Magento\Framework\Api\ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY => $extensionAttributeMock
178+
\Magento\Framework\Api\ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY => $extensionAttribute
179179
]
180180
]
181181
);

app/code/Magento/Paypal/view/frontend/web/js/action/set-payment-method.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@
44
*/
55

66
define([
7-
'jquery',
87
'Magento_Checkout/js/model/quote',
9-
'Magento_Checkout/js/model/url-builder',
10-
'mage/storage',
11-
'Magento_Checkout/js/model/error-processor',
12-
'Magento_Customer/js/model/customer',
13-
'Magento_Checkout/js/model/full-screen-loader',
148
'Magento_Checkout/js/action/set-payment-information'
15-
], function ($, quote, urlBuilder, storage, errorProcessor, customer, fullScreenLoader, setPaymentInformation) {
9+
], function (quote, setPaymentInformation) {
1610
'use strict';
1711

1812
return function (messageContainer) {

0 commit comments

Comments
 (0)