File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
app/code/Magento/Customer/Controller/Adminhtml/Index
dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ protected function _extractData(
84
84
$ result = $ metadataForm ->compactData ($ formData );
85
85
86
86
// Re-initialize additional attributes
87
- $ formData = array_replace ($ formData , $ result );
87
+ $ formData = array_replace ($ result , $ formData );
88
88
89
89
// Unset unused attributes
90
90
$ formAttributes = $ metadataForm ->getAttributes ();
Original file line number Diff line number Diff line change @@ -313,6 +313,8 @@ public function testSaveActionExistingCustomerAndExistingAddressData()
313
313
$ this ->assertEquals (2 , count ($ addresses ));
314
314
$ updatedAddress = $ this ->addressRepository ->getById (1 );
315
315
$ this ->assertEquals ('update firstname ' , $ updatedAddress ->getFirstname ());
316
+ $ this ->assertTrue ($ updatedAddress ->isDefaultBilling ());
317
+ $ this ->assertEquals ($ updatedAddress ->getId (), $ customer ->getDefaultBilling ());
316
318
$ newAddress = $ this ->accountManagement ->getDefaultShippingAddress ($ customerId );
317
319
$ this ->assertEquals ('new firstname ' , $ newAddress ->getFirstname ());
318
320
You can’t perform that action at this time.
0 commit comments