Skip to content

Commit 901477a

Browse files
AnujNehraAnujNehra
authored andcommitted
ACP2E-2301: Customers and Addresses (single file) Import fails
1 parent ddf608b commit 901477a

File tree

1 file changed

+31
-0
lines changed
  • app/code/Magento/CustomerImportExport/Test/Unit/Model/ResourceModel/Import/CustomerComposite

1 file changed

+31
-0
lines changed

app/code/Magento/CustomerImportExport/Test/Unit/Model/ResourceModel/Import/CustomerComposite/DataTest.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,37 @@ public function getNextBunchDataProvider()
218218
]
219219
),
220220
'$expectedData' => [],
221+
],
222+
'customer entity default no _scope' => [
223+
'$entityType' => CustomerComposite::COMPONENT_ENTITY_CUSTOMER,
224+
'$bunchData' => json_encode(
225+
[
226+
[
227+
Address::COLUMN_WEBSITE => 'website1',
228+
Address::COLUMN_EMAIL => 'email1',
229+
Address::COLUMN_ADDRESS_ID => null,
230+
CustomerComposite::COLUMN_DEFAULT_BILLING => 'value',
231+
CustomerComposite::COLUMN_DEFAULT_SHIPPING => 'value',
232+
'customer_attribute1' => 'value',
233+
'customer_attribute2' => 'value',
234+
CustomerComposite::COLUMN_ADDRESS_PREFIX . 'attribute1' => 'value',
235+
CustomerComposite::COLUMN_ADDRESS_PREFIX . 'attribute2' => 'value',
236+
],
237+
]
238+
),
239+
'$expectedData' => [
240+
0 => [
241+
Address::COLUMN_WEBSITE => 'website1',
242+
Address::COLUMN_EMAIL => 'email1',
243+
Address::COLUMN_ADDRESS_ID => null,
244+
CustomerComposite::COLUMN_DEFAULT_BILLING => 'value',
245+
CustomerComposite::COLUMN_DEFAULT_SHIPPING => 'value',
246+
'customer_attribute1' => 'value',
247+
'customer_attribute2' => 'value',
248+
'attribute1' => 'value',
249+
'attribute2' => 'value',
250+
],
251+
],
221252
]
222253
];
223254
}

0 commit comments

Comments
 (0)