File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ public function validateAddresses(QuoteEntity $quote)
163163 $ customerAddress ->setPostcode ($ billingAddress ->getPostcode ());
164164 $ customerAddress ->setTelephone ($ billingAddress ->getTelephone ());
165165 $ customerAddress ->setCountryId ($ billingAddress ->getCountryId ());
166+ $ customerAddress ->setCustomAttributes ($ billingAddress ->getCustomAttributes ());
166167 $ addresses [] = $ customerAddress ;
167168 }
168169 if ($ quote ->getShippingAddress ()->getCustomerAddressId ()) {
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ public function testValidateAddressesNotSavedInAddressBook()
268268 {
269269 $ this ->expectException (ValidatorException::class);
270270 $ this ->quoteAddressMock ->method ('getStreet ' )->willReturn (['test ' ]);
271+ $ this ->quoteAddressMock ->method ('getCustomAttributes ' )->willReturn (['test ' ]);
271272 $ this ->customerAddressFactoryMock ->method ('create ' )
272273 ->willReturn ($ this ->customerAddressMock );
273274 $ addressMock = $ this ->getMockBuilder (Address::class)
You can’t perform that action at this time.
0 commit comments