Skip to content

Commit 3ac303c

Browse files
AnujnehraAnujnehra
authored andcommitted
ACP2E-2301: Customers and Addresses (single file) Import fails
1 parent 288cf22 commit 3ac303c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/CustomerImportExport/Test/Unit/Model/Import/CustomerCompositeTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ protected function _getModelMockForPrepareRowForDb()
255255
protected function _getModelMockForImportData($isDeleteBehavior, $customerImport, $addressImport)
256256
{
257257
$customerEntity = $this->_getCustomerEntityMock();
258+
$customerEntity->expects($this->once())->method('setIds')->willReturnSelf();
258259
$customerEntity->expects($this->once())->method('importData')->willReturn($customerImport);
259260

260261
$addressEntity = $this->_getAddressEntityMock();
@@ -263,6 +264,7 @@ protected function _getModelMockForImportData($isDeleteBehavior, $customerImport
263264
$addressEntity->expects($this->never())->method('importData');
264265
} else {
265266
$addressEntity->expects($this->atMost(2))->method('setCustomerAttributes')->willReturnSelf();
267+
$addressEntity->expects($this->once())->method('setIds')->willReturnSelf();
266268
$addressEntity->expects($this->once())->method('importData')->willReturn($addressImport);
267269
}
268270

0 commit comments

Comments
 (0)