File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
app/code/Magento/CustomerImportExport/Test/Unit/Model/Import Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,8 @@ protected function _getModelMockForTestImportDataWithCustomBehaviour()
335
335
],
336
336
];
337
337
$ updateResult = [
338
- 'entity_row ' => $ this ->_customBehaviour ['update_id ' ],
338
+ 'entity_row_new ' => [],
339
+ 'entity_row_update ' => $ this ->_customBehaviour ['update_id ' ],
339
340
'attributes ' => [],
340
341
'defaults ' => [],
341
342
];
@@ -678,13 +679,15 @@ public function testImportDataWithCustomBehaviour()
678
679
/**
679
680
* Validation method for _saveAddressEntities (callback for _saveAddressEntities)
680
681
*
681
- * @param array $addUpdateRows
682
+ * @param array $addRows
683
+ * @param array $updateRows
682
684
* @return Address|\PHPUnit_Framework_MockObject_MockObject
683
685
*/
684
- public function validateSaveAddressEntities (array $ addUpdateRows )
686
+ public function validateSaveAddressEntities (array $ addRows , array $ updateRows )
685
687
{
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 );
688
691
return $ this ->_model ;
689
692
}
690
693
You can’t perform that action at this time.
0 commit comments