8
8
use Magento \Framework \App \Filesystem \DirectoryList ;
9
9
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingErrorAggregatorInterface ;
10
10
11
+ /**
12
+ * Test for CustomerComposite import class
13
+ */
11
14
class CustomerCompositeTest extends \PHPUnit \Framework \TestCase
12
15
{
13
16
/**#@+
@@ -129,10 +132,10 @@ protected function _assertCustomerData(array $expectedData)
129
132
* @param string $sourceFile
130
133
* @param array $dataBefore
131
134
* @param array $dataAfter
132
- * @param array $errors
133
135
* @param int $updatedItemsCount
134
136
* @param int $createdItemsCount
135
137
* @param int $deletedItemsCount
138
+ * @param array $errors
136
139
*
137
140
* @magentoDataFixture Magento/Customer/_files/import_export/customers_for_address_import.php
138
141
* @magentoAppIsolation enabled
@@ -144,10 +147,10 @@ public function testImportData(
144
147
$ sourceFile ,
145
148
array $ dataBefore ,
146
149
array $ dataAfter ,
147
- array $ errors = [],
148
150
$ updatedItemsCount ,
149
151
$ createdItemsCount ,
150
- $ deletedItemsCount
152
+ $ deletedItemsCount ,
153
+ array $ errors = []
151
154
) {
152
155
\Magento \TestFramework \Helper \Bootstrap::getInstance ()
153
156
->loadArea (\Magento \Framework \App \Area::AREA_FRONTEND );
@@ -206,10 +209,10 @@ public function importDataDataProvider()
206
209
'$sourceFile ' => $ filesDirectory . self ::DELETE_FILE_NAME ,
207
210
'$dataBefore ' => $ this ->_beforeImport ,
208
211
'$dataAfter ' => [],
209
- '$errors ' => [],
210
212
'$updatedItemsCount ' => 0 ,
211
213
'$createdItemsCount ' => 0 ,
212
214
'$deletedItemsCount ' => 1 ,
215
+ '$errors ' => [],
213
216
],
214
217
];
215
218
@@ -218,10 +221,10 @@ public function importDataDataProvider()
218
221
'$sourceFile ' => $ filesDirectory . self ::UPDATE_FILE_NAME ,
219
222
'$dataBefore ' => $ this ->_beforeImport ,
220
223
'$dataAfter ' => $ this ->_afterImport ,
221
- '$errors ' => [],
222
224
'$updatedItemsCount ' => 1 ,
223
225
'$createdItemsCount ' => 3 ,
224
226
'$deletedItemsCount ' => 0 ,
227
+ '$errors ' => [],
225
228
];
226
229
227
230
return $ sourceData ;
0 commit comments