return $salesChannelContextFactory->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
);
} private function createShippingMethod(): string
{ $shippingMethodId = Uuid::
randomHex();
$repository =
$this->
getContainer()->
get('shipping_method.repository'
);
$ruleRegistry =
$this->
getContainer()->
get(RuleConditionRegistry::
class);
$prop = ReflectionHelper::
getProperty(RuleConditionRegistry::
class, 'rules'
);
$prop->
setValue($ruleRegistry,
array_merge($prop->
getValue($ruleRegistry),
['true' =>
new TrueRule()]));
$data =
[ 'id' =>
$shippingMethodId,
'type' => 0,
'name' => 'Test shipping method',
'bindShippingfree' => false,
'active' => true,
'prices' =>
[ [ 'name' => 'Std',
'price' => '10.00',