Skip to content

Commit c1979da

Browse files
committed
magento/graphql-ce#757 Remove PaymentMethodAdditionalDataInput From Schema
- fix integration tests
1 parent c1470bd commit c1979da

11 files changed

+8
-30
lines changed

dev/tests/integration/testsuite/Magento/AuthorizenetGraphQl/Model/Resolver/Customer/PlaceOrderWithAuthorizeNetTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ public function testDispatchToPlaceOrderWithRegisteredCustomer(): void
9494
cart_id: "$cartId"
9595
payment_method: {
9696
code: "$paymentMethod"
97-
additional_data:
98-
{authorizenet_acceptjs:
97+
authorizenet_acceptjs:
9998
{opaque_data_descriptor: "mydescriptor",
10099
opaque_data_value: "myvalue",
101-
cc_last_4: 1111}}
100+
cc_last_4: 1111}
102101
}
103102
}) {
104103
cart {

dev/tests/integration/testsuite/Magento/AuthorizenetGraphQl/Model/Resolver/Customer/SetAuthorizeNetPaymentMethodOnCartTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ public function testDispatchToSetPaymentMethodWithAuthorizenet(): void
6969
cart_id: "$maskedQuoteId"
7070
payment_method: {
7171
code: "$methodCode"
72-
additional_data:
73-
{authorizenet_acceptjs:
72+
authorizenet_acceptjs:
7473
{opaque_data_descriptor: "COMMON.ACCEPT.INAPP.PAYMENT",
7574
opaque_data_value: "abx",
76-
cc_last_4: 1111}}
75+
cc_last_4: 1111}
7776
}
7877
}) {
7978
cart {

dev/tests/integration/testsuite/Magento/AuthorizenetGraphQl/Model/Resolver/Guest/PlaceOrderWithAuthorizeNetTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ public function testDispatchToPlaceAnOrderWithAuthorizenet(): void
9494
cart_id: "$cartId"
9595
payment_method: {
9696
code: "$paymentMethod"
97-
additional_data:
98-
{authorizenet_acceptjs:
97+
authorizenet_acceptjs:
9998
{opaque_data_descriptor: "mydescriptor",
10099
opaque_data_value: "myvalue",
101-
cc_last_4: 1111}}
100+
cc_last_4: 1111}
102101
}
103102
}) {
104103
cart {

dev/tests/integration/testsuite/Magento/AuthorizenetGraphQl/Model/Resolver/Guest/SetAuthorizeNetPaymentMethodOnCartTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ public function testDispatchToSetPaymentMethodWithAuthorizenet(): void
6464
cart_id: "$maskedQuoteId"
6565
payment_method: {
6666
code: "$methodCode"
67-
additional_data:
68-
{authorizenet_acceptjs:
67+
authorizenet_acceptjs:
6968
{opaque_data_descriptor: "COMMON.ACCEPT.INAPP.PAYMENT",
7069
opaque_data_value: "abx",
71-
cc_last_4: 1111}}
70+
cc_last_4: 1111}
7271
}
7372
}) {
7473
cart {

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Customer/PaypalExpressSetPaymentMethodTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public function testResolve(string $paymentMethod): void
9898
setPaymentMethodOnCart(input: {
9999
payment_method: {
100100
code: "{$paymentMethod}",
101-
additional_data: {
102101
paypal_express: {
103102
payer_id: "$payerId",
104103
token: "$token"
@@ -107,7 +106,6 @@ public function testResolve(string $paymentMethod): void
107106
payer_id: "$payerId",
108107
token: "$token"
109108
}
110-
}
111109
},
112110
cart_id: "{$maskedCartId}"})
113111
{

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Customer/PlaceOrderWithPayflowLinkTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,11 @@ public function testResolvePlaceOrderWithPayflowLinkForCustomer(): void
124124
cart_id: "$cartId"
125125
payment_method: {
126126
code: "$paymentMethod"
127-
additional_data: {
128127
payflow_link:
129128
{
130129
cancel_url:"{$baseUrl}paypal/payflow/cancelPayment"
131130
return_url:"{$baseUrl}paypal/payflow/returnUrl"
132131
}
133-
}
134132
}
135133
}) {
136134
cart {

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Customer/PlaceOrderWithPayflowProTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,13 @@ public function testResolveCustomer(): void
8080
setPaymentMethodOnCart(input: {
8181
payment_method: {
8282
code: "{$paymentMethod}",
83-
additional_data: {
8483
payflowpro: {
8584
cc_details: {
8685
cc_exp_month: 12,
8786
cc_exp_year: 2030,
8887
cc_last_4: 1111,
8988
cc_type: "IV",
9089
}
91-
}
9290
}
9391
},
9492
cart_id: "{$cartId}"})

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PaypalExpressSetPaymentMethodTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public function testResolveGuest(string $paymentMethod): void
9696
setPaymentMethodOnCart(input: {
9797
payment_method: {
9898
code: "{$paymentMethod}",
99-
additional_data: {
10099
paypal_express: {
101100
payer_id: "$payerId",
102101
token: "$token"
@@ -105,7 +104,6 @@ public function testResolveGuest(string $paymentMethod): void
105104
payer_id: "$payerId",
106105
token: "$token"
107106
}
108-
}
109107
},
110108
cart_id: "{$cartId}"})
111109
{

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PaypalPayflowProSetPaymentMethodTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,13 @@ public function testResolveGuest(): void
8080
setPaymentMethodOnCart(input: {
8181
payment_method: {
8282
code: "{$paymentMethod}",
83-
additional_data: {
8483
payflowpro: {
8584
cc_details: {
8685
cc_exp_month: 12,
8786
cc_exp_year: 2030,
8887
cc_last_4: 1111,
8988
cc_type: "IV",
9089
}
91-
}
9290
}
9391
},
9492
cart_id: "{$cartId}"})

dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Guest/PlaceOrderWithPayflowLinkTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,12 @@ public function testResolvePlaceOrderWithPayflowLink(): void
117117
cart_id: "$cartId"
118118
payment_method: {
119119
code: "$paymentMethod"
120-
additional_data: {
121120
payflow_link:
122121
{
123122
cancel_url:"http://mage.test/paypal/payflow/cancel"
124123
return_url:"http://mage.test/paypal/payflow/return"
125124
error_url:"http://mage.test/paypal/payflow/error"
126125
}
127-
}
128126
}
129127
}) {
130128
cart {
@@ -221,14 +219,12 @@ public function testResolveWithPayflowLinkDeclined(): void
221219
cart_id: "$cartId"
222220
payment_method: {
223221
code: "$paymentMethod"
224-
additional_data: {
225222
payflow_link:
226223
{
227224
cancel_url:"http://mage.test/paypal/payflow/cancelPayment"
228225
return_url:"http://mage.test/paypal/payflow/returnUrl"
229226
error_url:"http://mage.test/paypal/payflow/returnUrl"
230227
}
231-
}
232228
}
233229
}) {
234230
cart {

0 commit comments

Comments
 (0)