public static function buildingProvider(): \Generator
{ yield 'Test without options' =>
[ new ProductEntity(),
[],
];
yield 'Test without loaded option groups' =>
[ (new ProductEntity())->
assign([ '_uniqueIdentifier' => Uuid::
randomHex(),
'options' =>
new PropertyGroupOptionCollection([ (new PropertyGroupOptionEntity())->
assign([ '_uniqueIdentifier' => Uuid::
randomHex(),
'name' => 'red',
]),
]),
]),
[],
];
yield 'Test with valid product' =>
[ (new ProductEntity())->
assign([ '_uniqueIdentifier' => Uuid::
randomHex(),