Skip to content

Commit

Permalink
remove ProductSellingPrice
Browse files Browse the repository at this point in the history
- add pricing group to ProductPrice that is now used instead of ProductSellingPrice
  • Loading branch information
vitek-rostislav committed Jan 23, 2025
1 parent f408ce6 commit c33de12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Unit/GoogleFeedItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Shopsys\FrameworkBundle\Component\Money\Money;
use Shopsys\FrameworkBundle\Model\Pricing\Currency\Currency;
use Shopsys\FrameworkBundle\Model\Pricing\Currency\CurrencyFacade;
use Shopsys\FrameworkBundle\Model\Pricing\Group\PricingGroup;
use Shopsys\FrameworkBundle\Model\Pricing\Price;
use Shopsys\FrameworkBundle\Model\Pricing\SpecialPrice\SpecialPriceFacade;
use Shopsys\FrameworkBundle\Model\Product\Availability\ProductAvailabilityFacade;
Expand Down Expand Up @@ -132,7 +133,7 @@ private function createDomainConfigMock(int $id, string $url, string $locale, Cu
*/
private function mockProductPrice(Product $product, DomainConfig $domain, Price $price): void
{
$productPrice = new ProductPrice($price, false);
$productPrice = new ProductPrice($price, $this->createMock(PricingGroup::class), false);
$this->productPriceCalculationForCustomerUserMock->method('calculateBasicPriceForCustomerUserAndDomainId')
->with($product, $domain->getId(), null)->willReturn($productPrice);
}
Expand Down

0 comments on commit c33de12

Please sign in to comment.