/** @var ProductEntity $result */
$result =
$this->productRepository->
search($criteria, Context::
createDefaultContext())->
first();
static::
assertCount(2,
$result->
getVariation());
$criteria->
resetFilters();
$criteria->
addFilter(new EqualsFilter('id', 'e5c8b8f701034e8dbea72ac0fc32521e'
));
/** @var ProductEntity $result */
$result =
$this->productRepository->
search($criteria, Context::
createDefaultContext())->
first();
static::
assertInstanceOf(ProductConfiguratorSettingCollection::
class,
$result->
getConfiguratorSettings());
static::
assertCount(2,
$result->
getConfiguratorSettings());
} public function testProductsCoverIsUpdated(): void
{ $context = Context::
createDefaultContext();
$context->
addState(EntityIndexerRegistry::DISABLE_INDEXING
);
$progress =
$this->
import($context, ProductDefinition::ENTITY_NAME, '/fixtures/products_with_updated_cover.csv', 'products.csv'
);
static::
assertSame(Progress::STATE_SUCCEEDED,
$progress->
getState());