Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue
- fix code style;

(cherry picked from commit 466daaa)
  • Loading branch information
vpodorozh committed Oct 27, 2018
1 parent f114f2a commit 95eeb9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function testGetAllProductImages(): void
return $result;
};

$getAllProductImagesSelectFetchResults = function ($batchSize): array {
$getFetchResults = function ($batchSize): array {
$result = [];
$count = $batchSize;
while ($count) {
Expand All @@ -146,7 +146,7 @@ public function testGetAllProductImages(): void
->method('select')
->willReturn($this->getVisibleImagesSelectMock());

$fetchResult = $getAllProductImagesSelectFetchResults($this->batchSize);
$fetchResult = $getFetchResults($this->batchSize);
$this->connectionMock->expects($this->exactly($this->imagesCount / $this->batchSize))
->method('fetchAll')
->willReturn($fetchResult);
Expand Down

0 comments on commit 95eeb9f

Please sign in to comment.