public function testResolveCmsPageIdProviderWithSalesChannelLoadedEvent(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 SalesChannelEntityLoadedEvent( $this->
createMock(SalesChannelProductDefinition::
class),
[$entity],
$this->
createMock(SalesChannelContext::
class) );
$subscriber->
salesChannelLoaded($event);
static::
assertSame($expected,
$entity->
get('cmsPageId'
));
} public static function resolveCmsPageIdProviderWithLoadedEventProvider(): \Generator
{