Skip to content

Commit

Permalink
move Product::$namePrefix and $nameSufix from project-base to the pac…
Browse files Browse the repository at this point in the history
…kages

- getFullname() renamed to getFullName()
  • Loading branch information
vitek-rostislav committed Dec 2, 2024
1 parent a6e8a6f commit 32d7c52
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/MergadoFeedItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function createForProduct(Product $product, DomainConfig $domainConfig):
return new MergadoFeedItem(
$product->getId(),
$product->getCatnum(),
$product->getFullnames()[$domainConfig->getLocale()],
$product->getFullName($domainConfig->getLocale()),
$this->productUrlsBatchLoader->getProductUrl($product, $domainConfig),
$this->categoryFacade->getCategoryNamesInPathFromRootToProductMainCategoryOnDomain($product, $domainConfig),
$this->getProductUsp($product, $domainId),
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/MergadoFeedItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private function doSetUp(bool $isProductAvailableOnStock): void
$this->defaultProduct = $this->createMock(Product::class);
$this->defaultProduct->method('getId')->willReturn(1);
$this->defaultProduct->method('getCatnum')->willReturn('catnum');
$this->defaultProduct->method('getFullNames')->willReturn(['en' => 'product name']);
$this->defaultProduct->method('getFullName')->willReturn('product name');
$this->defaultProduct->method('getDescription')->willReturn('description');
$this->defaultProduct->method('getShortDescriptionUsp1')->willReturn('short description usp 1');

Expand Down

0 comments on commit 32d7c52

Please sign in to comment.