yield 'It sets cms page id if none is given and default is provided with partial entity' =>
[ (new PartialEntity())->
assign(['id' => Uuid::
randomHex(), 'cmsPageId' => null
]),
new StaticSystemConfigService([self::CONFIG => 'config-id'
]),
'config-id',
];
} public static function resolveCmsPageIdProviderWithSalesChannelLoadedEventProvider(): \Generator
{ yield 'It does not set cms page id if already given' =>
[ (new SalesChannelProductEntity())->
assign(['id' => Uuid::
randomHex(), 'cmsPageId' => 'own-id'
]),
new StaticSystemConfigService([self::CONFIG => 'config-id'
]),
'own-id',
];
yield 'It does not set if no default is given' =>
[ (new SalesChannelProductEntity())->
assign(['id' => Uuid::
randomHex(), 'cmsPageId' => null
]),
new StaticSystemConfigService(),
null,
];
yield 'It sets cms page id if none is given and default is provided' =>
[ (