Skip to content

Commit

Permalink
[framework] handle image resizing by image proxy (#2924)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-rostislav authored Dec 7, 2023
2 parents 8554007 + 7d650c2 commit d5a99a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model/FeedItem/GoogleFeedItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function create(Product $product, DomainConfig $domainConfig): GoogleFeed
$product->getDescription($domainConfig->getId()),
$product->getEan(),
$product->getPartno(),
$this->productUrlsBatchLoader->getProductImageUrl($product, $domainConfig),
$this->productUrlsBatchLoader->getResizedProductImageUrl($product, $domainConfig),
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/GoogleFeedItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function mockProductUrl(Product $product, DomainConfig $domain, string $
*/
private function mockProductImageUrl(Product $product, DomainConfig $domain, string $url): void
{
$this->productUrlsBatchLoaderMock->method('getProductImageUrl')
$this->productUrlsBatchLoaderMock->method('getResizedProductImageUrl')
->with($product, $domain)->willReturn($url);
}

Expand Down

0 comments on commit d5a99a8

Please sign in to comment.