Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 466daaa

Browse files
committed
catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix code style;
1 parent 6a6079d commit 466daaa

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function testGetAllProductImages(): void
131131
return $result;
132132
};
133133

134-
$getAllProductImagesSelectFetchResults = function ($batchSize): array {
134+
$getFetchResults = function ($batchSize): array {
135135
$result = [];
136136
$count = $batchSize;
137137
while ($count) {
@@ -146,7 +146,7 @@ public function testGetAllProductImages(): void
146146
->method('select')
147147
->willReturn($this->getVisibleImagesSelectMock());
148148

149-
$fetchResult = $getAllProductImagesSelectFetchResults($this->batchSize);
149+
$fetchResult = $getFetchResults($this->batchSize);
150150
$this->connectionMock->expects($this->exactly($this->imagesCount / $this->batchSize))
151151
->method('fetchAll')
152152
->willReturn($fetchResult);

0 commit comments

Comments
 (0)