Skip to content

Commit

Permalink
MAGETWO-58337: [Github] Duplicated & missing product rows in system p…
Browse files Browse the repository at this point in the history
…roduct export #4531
  • Loading branch information
shiftedreality committed Sep 14, 2016
1 parent fecf38c commit a7a2489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ public function export()
while (true) {
++$page;
$entityCollection = $this->_getEntityCollection(true);
$entityCollection->setOrder('has_options', 'asc');
$entityCollection->setOrder('entity_id', 'asc');
$entityCollection->setStoreId(Store::DEFAULT_STORE_ID);
$this->_prepareEntityCollection($entityCollection);
$this->paginateCollection($page, $this->getItemsPerPage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function testExportCountZeroBreakInternalCalls()
$this->product->expects($this->once())->method('_prepareEntityCollection')->with($this->abstractCollection);
$this->product->expects($this->once())->method('getItemsPerPage')->willReturn($itemsPerPage);
$this->product->expects($this->once())->method('paginateCollection')->with($page, $itemsPerPage);
$this->abstractCollection->expects($this->once())->method('setOrder')->with('has_options', 'asc');
$this->abstractCollection->expects($this->once())->method('setOrder')->with('entity_id', 'asc');
$this->abstractCollection->expects($this->once())->method('setStoreId')->with(Store::DEFAULT_STORE_ID);

$this->abstractCollection->expects($this->once())->method('count')->willReturn(0);
Expand Down Expand Up @@ -434,7 +434,7 @@ public function testExportCurPageEqualToLastBreakInternalCalls()
$this->product->expects($this->once())->method('_prepareEntityCollection')->with($this->abstractCollection);
$this->product->expects($this->once())->method('getItemsPerPage')->willReturn($itemsPerPage);
$this->product->expects($this->once())->method('paginateCollection')->with($page, $itemsPerPage);
$this->abstractCollection->expects($this->once())->method('setOrder')->with('has_options', 'asc');
$this->abstractCollection->expects($this->once())->method('setOrder')->with('entity_id', 'asc');
$this->abstractCollection->expects($this->once())->method('setStoreId')->with(Store::DEFAULT_STORE_ID);

$this->abstractCollection->expects($this->once())->method('count')->willReturn(1);
Expand Down

0 comments on commit a7a2489

Please sign in to comment.