@@ -732,7 +732,7 @@ private function preparePreconditionsForCreateOrder(
732
732
/** Unset fake IDs for default billing and shipping customer addresses */
733
733
/** @var Customer $customer */
734
734
$ customer = $ this ->objectManager ->create (Customer::class);
735
- if (empty ($ orderData ['checkForDefaultStreet ' ])){
735
+ if (empty ($ orderData ['checkForDefaultStreet ' ])) {
736
736
$ customer ->load ($ customerIdFromFixture )->setDefaultBilling (null )->setDefaultShipping (null )->save ();
737
737
}
738
738
} else {
@@ -873,11 +873,17 @@ public function testSetBillingAddressStreetValidationErrors()
873
873
$ errorMessages [] = $ validationError ->getText ();
874
874
}
875
875
self ::assertTrue (
876
- in_array ('Billing Address: "Street Address" contains non-alphabetic or non-numeric characters. ' , $ errorMessages ),
876
+ in_array (
877
+ 'Billing Address: "Street Address" contains non-alphabetic or non-numeric characters. ' ,
878
+ $ errorMessages
879
+ ),
877
880
'Expected validation message is absent. '
878
881
);
879
882
self ::assertTrue (
880
- in_array ('Shipping Address: "Street Address" contains non-alphabetic or non-numeric characters. ' , $ errorMessages ),
883
+ in_array (
884
+ 'Shipping Address: "Street Address" contains non-alphabetic or non-numeric characters. ' ,
885
+ $ errorMessages
886
+ ),
881
887
'Expected validation message is absent. '
882
888
);
883
889
}
@@ -900,8 +906,8 @@ public function testCreateOrderExistingCustomerWhenDefaultAddressDiffersWithNew(
900
906
$ shippingAddressAsBilling = 1 ;
901
907
$ invalidAddressData = array_merge ($ this ->getValidAddressData (), ['street ' => [0 => 'White ' , 1 => 'Lane ' ]]);
902
908
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.
909
+ // Any change in default customer address should be treated as new address by setting up
910
+ // `customer_address_id` to `null` in billing and shipping addresses.
905
911
$ address = array_merge ($ invalidAddressData , ['save_in_address_book ' => '1 ' , 'customer_address_id ' => null ]);
906
912
$ orderData = [
907
913
'currency ' => 'USD ' ,
0 commit comments