Skip to content

Commit 3e4a7ce

Browse files
author
Oleksandr Osadchyi
committed
MAGETWO-62616: Products are missed and total count is wrong on category page
1 parent d82b063 commit 3e4a7ce

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/internal/Magento/Framework/DB/Query/Generator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Generator
2626
* Initialize dependencies.
2727
*
2828
* @param BatchIteratorFactory $iteratorFactory
29+
* @param BatchRangeIteratorFactory $rangeIteratorFactory
2930
*/
3031
public function __construct(
3132
BatchIteratorFactory $iteratorFactory,

lib/internal/Magento/Framework/Test/Unit/DB/Query/GeneratorTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ public function testGenerateWithNonUniqueStrategy()
203203
'rangeFieldAlias' => 'product_id'
204204
]
205205
)->willReturn($this->iteratorMock);
206-
$this->assertEquals($this->iteratorMock, $this->model->generate('entity_id', $this->selectMock, 100, 'non_unique'));
206+
$this->assertEquals(
207+
$this->iteratorMock,
208+
$this->model->generate('entity_id', $this->selectMock, 100, 'non_unique')
209+
);
207210
}
208211
}

0 commit comments

Comments
 (0)