@@ -214,6 +214,10 @@ public function testInitializeQuoteForReview(
214
214
$ this ->model ->initializeQuoteForReview ($ paymentMethodNonce , $ details );
215
215
}
216
216
217
+ /**
218
+ * @return array
219
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
220
+ */
217
221
public function initializeQuoteForReviewDataProvider ()
218
222
{
219
223
return [
@@ -311,6 +315,48 @@ public function initializeQuoteForReviewDataProvider()
311
315
'payerLastName ' => self ::LASTNAME ,
312
316
]
313
317
],
318
+ 'without_shipping_extended_address ' => [
319
+ 'payment_method_nonce ' => 'nonce ' ,
320
+ 'details ' => [
321
+ 'email ' => self ::EMAIL ,
322
+ 'firstName ' => self ::FIRSTNAME ,
323
+ 'lastName ' => self ::LASTNAME ,
324
+ 'shippingAddress ' => [
325
+ 'streetAddress ' => self ::SHIPPING_STREET_ADDRESS ,
326
+ 'locality ' => self ::SHIPPING_LOCALITY ,
327
+ 'region ' => self ::SHIPPING_REGION ,
328
+ 'countryCodeAlpha2 ' => self ::SHIPPING_COUNTRY_CODE ,
329
+ 'postalCode ' => self ::SHIPPING_POSTAL_CODE ,
330
+ ],
331
+ ],
332
+ 'expected_shipping ' => [
333
+ 'setFirstname ' => self ::FIRSTNAME ,
334
+ 'setLastname ' => self ::LASTNAME ,
335
+ 'setEmail ' => self ::EMAIL ,
336
+ 'setCollectShippingRates ' => true ,
337
+ 'setStreet ' => [self ::SHIPPING_STREET_ADDRESS , null ],
338
+ 'setCity ' => self ::SHIPPING_LOCALITY ,
339
+ 'setRegionCode ' => self ::SHIPPING_REGION ,
340
+ 'setCountryId ' => self ::SHIPPING_COUNTRY_CODE ,
341
+ 'setPostCode ' => self ::SHIPPING_POSTAL_CODE ,
342
+ ],
343
+ 'expected_billing ' => [
344
+ 'setFirstname ' => self ::FIRSTNAME ,
345
+ 'setLastname ' => self ::LASTNAME ,
346
+ 'setEmail ' => self ::EMAIL ,
347
+ 'setStreet ' => [self ::SHIPPING_STREET_ADDRESS , null ],
348
+ 'setCity ' => self ::SHIPPING_LOCALITY ,
349
+ 'setRegionCode ' => self ::SHIPPING_REGION ,
350
+ 'setCountryId ' => self ::SHIPPING_COUNTRY_CODE ,
351
+ 'setPostCode ' => self ::SHIPPING_POSTAL_CODE ,
352
+ ],
353
+ 'expected_payment_additional_info ' => [
354
+ 'payment_method_nonce ' => 'nonce ' ,
355
+ 'payerEmail ' => self ::EMAIL ,
356
+ 'payerFirstName ' => self ::FIRSTNAME ,
357
+ 'payerLastName ' => self ::LASTNAME ,
358
+ ]
359
+ ],
314
360
];
315
361
}
316
362
}
0 commit comments