static::
assertStringContainsString('size: M, L, XL, XXL | oops',
$first['_error'
]);
$second =
$invalid[1
];
static::
assertStringContainsString('size: , | color: Green, White, Black, Purple',
$second['_error'
]);
} public function testProductsWithOwnIdentifier(): void
{ $context = Context::
createDefaultContext();
$context->
addState(EntityIndexerRegistry::DISABLE_INDEXING
);
$productIds =
[ Uuid::
fromStringToHex('product1'
),
Uuid::
fromStringToHex('product2'
),
Uuid::
fromStringToHex('product3'
),
Uuid::
fromStringToHex('product4'
),
];
/** @var EntityRepository $categoryRepository */
$categoryRepository =
$this->
getContainer()->
get(CategoryDefinition::ENTITY_NAME . '.repository'
);
$category1Id = Uuid::
fromStringToHex('category1'
);
$category2Id = '0a600a2648b3486fbfdbc60993050103';
$category3Id = Uuid::
fromStringToHex('category3'
);
$categoryRepository->
upsert([ [