File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -900,8 +900,9 @@ public function testCreateOrderExistingCustomerWhenDefaultAddressDiffersWithNew(
900
900
$ shippingAddressAsBilling = 1 ;
901
901
$ invalidAddressData = array_merge ($ this ->getValidAddressData (), ['street ' => [0 => 'White ' , 1 => 'Lane ' ]]);
902
902
903
- // Optionally, to bypass default customer address validation, just set `customer_address_id` to `null` in billingAddress.
904
- $ address = array_merge ($ invalidAddressData , ['save_in_address_book ' => '1 ' , 'customer_address_id ' => 1 ]);
903
+ // Any change in default customer address should be treated as new address by setting up `customer_address_id` to `null`
904
+ // in billing and shipping addresses.
905
+ $ address = array_merge ($ invalidAddressData , ['save_in_address_book ' => '1 ' , 'customer_address_id ' => null ]);
905
906
$ orderData = [
906
907
'currency ' => 'USD ' ,
907
908
'billing_address ' => $ address ,
You can’t perform that action at this time.
0 commit comments