} public function testCollectWithMappedConfigButEmptyManyToManyRelation(): void
{ $category =
new CategoryEntity();
$category->
setUniqueIdentifier('category1'
);
$container =
new Container();
$categoryDefinition =
new CategoryDefinition();
$productDefinition =
new ProductDefinition();
$categoryProductDefinition =
new ProductCategoryDefinition();
$container->
set(CategoryDefinition::
class,
$categoryDefinition);
$container->
set(ProductDefinition::
class,
$productDefinition);
$container->
set(ProductCategoryDefinition::
class,
$categoryProductDefinition);
$container->
set(ProductOptionDefinition::
class,
$this->
createMock(ProductOptionDefinition::
class));
$container->
set(PropertyGroupOptionDefinition::
class,
$this->
createMock(PropertyGroupOptionDefinition::
class));
$container->
set(ProductPropertyDefinition::
class,
$this->
createMock(ProductPropertyDefinition::
class));
$container->
set(ProductStreamMappingDefinition::
class,
$this->
createMock(ProductStreamMappingDefinition::
class));
$container->
set(ProductStreamDefinition::
class,
$this->
createMock(ProductStreamDefinition::
class));
$container->
set(ProductCategoryTreeDefinition::
class,
$this->
createMock(ProductCategoryTreeDefinition::
class));