class ProductSubscriberTest extends TestCase
{ private const CONFIG = ProductDefinition::CONFIG_KEY_DEFAULT_CMS_PAGE_PRODUCT;
/**
* @dataProvider resolveCmsPageIdProviderWithLoadedEventProvider
*/
public function testResolveCmsPageIdProviderWithLoadedEvent(Entity
$entity, SystemConfigService
$config, ?string
$expected): void
{ $subscriber =
new ProductSubscriber( $this->
createMock(ProductVariationBuilder::
class),
$this->
createMock(AbstractProductPriceCalculator::
class),
$this->
createMock(AbstractPropertyGroupSorter::
class),
$this->
createMock(ProductMaxPurchaseCalculator::
class),
$this->
createMock(IsNewDetector::
class),
$config,
);
$event =
new EntityLoadedEvent( $this->
createMock(ProductDefinition::
class),
[$entity],