Skip to content

Commit

Permalink
XML feeds: image URL is now always restricted to reasonable size (605px)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-rostislav committed Dec 7, 2023
1 parent 8554007 commit 7d650c2
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 7d650c2

Please sign in to comment.