Skip to content

Commit 4c740ca

Browse files
pradeep.rauthanpradeep.rauthan
authored andcommitted
MC-42704: Admin Checkout validation bug-
Updated integration test coverage
1 parent e879d7e commit 4c740ca

File tree

1 file changed

+3
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder

1 file changed

+3
-2
lines changed

dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder/CreateTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,9 @@ public function testCreateOrderExistingCustomerWhenDefaultAddressDiffersWithNew(
900900
$shippingAddressAsBilling = 1;
901901
$invalidAddressData = array_merge($this->getValidAddressData(), ['street' => [0 => 'White', 1 => 'Lane']]);
902902

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]);
905906
$orderData = [
906907
'currency' => 'USD',
907908
'billing_address' => $address,

0 commit comments

Comments
 (0)