Skip to content

Commit

Permalink
persoo article feed (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-rostislav authored Jan 3, 2024
2 parents cf36c6e + ec582f0 commit df2157a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Model/FeedItem/HeurekaFeedItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function create(Product $product, DomainConfig $domainConfig): HeurekaFee
$this->productDataBatchLoader->getProductUrl($product, $domainConfig),
$this->getPrice($product, $domainConfig),
$mainVariantId,
$product->getDescription($domainConfig->getId()),
$product->getDescriptionAsPlainText($domainConfig->getId()),
$this->productDataBatchLoader->getProductImageUrl($product, $domainConfig),
$this->getBrandName($product),
$product->getEan(),
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/feed.xml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ITEMGROUP_ID>{{ item.groupId }}</ITEMGROUP_ID>
{% endif -%}
<PRODUCTNAME>{{ item.name }}</PRODUCTNAME>
<DESCRIPTION>{{ item.description|striptags|replace({"\n": ' '})|trim }}</DESCRIPTION>
<DESCRIPTION>{{ item.description }}</DESCRIPTION>
<URL>{{ item.url }}</URL>
{% if item.imgUrl -%}
<IMGURL>{{ item.imgUrl }}</IMGURL>
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/HeurekaFeedItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function testHeurekaFeedItemWithGroupId()

public function testHeurekaFeedItemWithDescription()
{
$this->defaultProduct->method('getDescription')
$this->defaultProduct->method('getDescriptionAsPlainText')
->with(1)->willReturn('product description');

$heurekaFeedItem = $this->heurekaFeedItemFactory->create($this->defaultProduct, $this->defaultDomain);
Expand Down

0 comments on commit df2157a

Please sign in to comment.