File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -335,14 +335,11 @@ public function testSaveCustomerDefaults()
335
335
$ customerId = $ addressCustomer ->getId ();
336
336
337
337
// set customer defaults
338
- $ defaults = [];
339
- foreach (Address::getDefaultAddressAttributeMapping () as $ attributeCode ) {
340
- /** @var $attribute \Magento\Eav\Model\Entity\Attribute\AbstractAttribute */
341
- $ attribute = $ addressCustomer ->getAttribute ($ attributeCode );
342
- $ attributeTable = $ attribute ->getBackend ()->getTable ();
343
- $ attributeId = $ attribute ->getId ();
344
- $ defaults [$ attributeTable ][$ customerId ][$ attributeId ] = $ addressId ;
345
- }
338
+ $ defaults = [
339
+ 'customer_entity ' => [
340
+ $ customerId => ['default_billing ' => $ addressId , 'default_shipping ' => $ addressId ],
341
+ ],
342
+ ];
346
343
347
344
// invoke _saveCustomerDefaults
348
345
$ saveDefaults = new \ReflectionMethod ($ this ->_testClassName , '_saveCustomerDefaults ' );
You can’t perform that action at this time.
0 commit comments