Skip to content

Commit d2e5345

Browse files
committed
catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix unit test - now it can test also not only full batches, but partial as well (139 images with batch size 100); (cherry picked from commit 546e7ce)
1 parent 4653d3e commit d2e5345

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product

1 file changed

+3
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/ImageTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,12 @@ protected function getBatchIteratorCallback(
210210
public function dataProvider(): array
211211
{
212212
return [
213+
[300, 300],
213214
[300, 100],
214215
[139, 100],
215216
[67, 10],
216-
[154, 47]
217+
[154, 47],
218+
[0, 100]
217219
];
218220
}
219221
}

0 commit comments

Comments
 (0)