Skip to content

Commit 68d8137

Browse files
author
nsyvokonenko
committed
MAGETWO-38138: Stabilize story
- fix unit test
1 parent ad687ea commit 68d8137

File tree

1 file changed

+8
-5
lines changed
  • app/code/Magento/CustomerImportExport/Test/Unit/Model/Import

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ protected function _getModelMockForTestImportDataWithCustomBehaviour()
335335
],
336336
];
337337
$updateResult = [
338-
'entity_row' => $this->_customBehaviour['update_id'],
338+
'entity_row_new' => [],
339+
'entity_row_update' => $this->_customBehaviour['update_id'],
339340
'attributes' => [],
340341
'defaults' => [],
341342
];
@@ -678,13 +679,15 @@ public function testImportDataWithCustomBehaviour()
678679
/**
679680
* Validation method for _saveAddressEntities (callback for _saveAddressEntities)
680681
*
681-
* @param array $addUpdateRows
682+
* @param array $addRows
683+
* @param array $updateRows
682684
* @return Address|\PHPUnit_Framework_MockObject_MockObject
683685
*/
684-
public function validateSaveAddressEntities(array $addUpdateRows)
686+
public function validateSaveAddressEntities(array $addRows, array $updateRows)
685687
{
686-
$this->assertCount(1, $addUpdateRows);
687-
$this->assertContains($this->_customBehaviour['update_id'], $addUpdateRows);
688+
$this->assertCount(0, $addRows);
689+
$this->assertCount(1, $updateRows);
690+
$this->assertContains($this->_customBehaviour['update_id'], $updateRows);
688691
return $this->_model;
689692
}
690693

0 commit comments

Comments
 (0)