$salesChannelProduct =
$this->salesChannelProductRepository->
search($criteria,
$this->context
)->
first();
// property group with highest value UUID should be returned
$propertyGroups =
$this->loader->
load($salesChannelProduct,
$this->context
);
static::
assertEquals(1,
$propertyGroups->
count());
$propertyGroup =
$propertyGroups->
first();
static::
assertEquals(1,
$propertyGroup->
getOptions()->
count());
$option =
$propertyGroup->
getOptions()->
first();
static::
assertSame('00000000000000000000000000000999',
$option->
getConfiguratorSetting()->
getId());
// remove duplicates, as the migration would
$this->
removeDuplicates();
// property group with highest value UUID should be returned
$propertyGroups =
$this->loader->
load($salesChannelProduct,
$this->context
);
static::
assertEquals(1,
$propertyGroups->
count());
$propertyGroup =
$propertyGroups->
first();
static::
assertEquals(1,
$propertyGroup->
getOptions()->
count());
$option =
$propertyGroup->
getOptions()->
first();
static::
assertSame('00000000000000000000000000000999',
$option->
getConfiguratorSetting()->
getId());
$this->connection->
rollBack();
$this->
executeMigration();