Skip to content

Commit 2673005

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-99894: Customer Import -> Created: 0, Updated: 0, Deleted: 0
1 parent 7a0c7a7 commit 2673005

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

dev/tests/integration/testsuite/Magento/CustomerImportExport/Model/Import/CustomerCompositeTest.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Magento\Framework\App\Filesystem\DirectoryList;
99
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
1010

11+
/**
12+
* Test for CustomerComposite import class
13+
*/
1114
class CustomerCompositeTest extends \PHPUnit\Framework\TestCase
1215
{
1316
/**#@+
@@ -129,10 +132,10 @@ protected function _assertCustomerData(array $expectedData)
129132
* @param string $sourceFile
130133
* @param array $dataBefore
131134
* @param array $dataAfter
132-
* @param array $errors
133135
* @param int $updatedItemsCount
134136
* @param int $createdItemsCount
135137
* @param int $deletedItemsCount
138+
* @param array $errors
136139
*
137140
* @magentoDataFixture Magento/Customer/_files/import_export/customers_for_address_import.php
138141
* @magentoAppIsolation enabled
@@ -144,10 +147,10 @@ public function testImportData(
144147
$sourceFile,
145148
array $dataBefore,
146149
array $dataAfter,
147-
array $errors = [],
148150
$updatedItemsCount,
149151
$createdItemsCount,
150-
$deletedItemsCount
152+
$deletedItemsCount,
153+
array $errors = []
151154
) {
152155
\Magento\TestFramework\Helper\Bootstrap::getInstance()
153156
->loadArea(\Magento\Framework\App\Area::AREA_FRONTEND);
@@ -206,10 +209,10 @@ public function importDataDataProvider()
206209
'$sourceFile' => $filesDirectory . self::DELETE_FILE_NAME,
207210
'$dataBefore' => $this->_beforeImport,
208211
'$dataAfter' => [],
209-
'$errors' => [],
210212
'$updatedItemsCount' => 0,
211213
'$createdItemsCount' => 0,
212214
'$deletedItemsCount' => 1,
215+
'$errors' => [],
213216
],
214217
];
215218

@@ -218,10 +221,10 @@ public function importDataDataProvider()
218221
'$sourceFile' => $filesDirectory . self::UPDATE_FILE_NAME,
219222
'$dataBefore' => $this->_beforeImport,
220223
'$dataAfter' => $this->_afterImport,
221-
'$errors' => [],
222224
'$updatedItemsCount' => 1,
223225
'$createdItemsCount' => 3,
224226
'$deletedItemsCount' => 0,
227+
'$errors' => [],
225228
];
226229

227230
return $sourceData;

0 commit comments

Comments
 (0)