$ruleId = Uuid::
randomHex();
$this->ruleRepository->
create( [['id' =>
$ruleId, 'name' => 'Demo rule', 'priority' => 1
]],
Context::
createDefaultContext() );
$id = Uuid::
randomHex();
$this->conditionRepository->
create([ [ 'id' =>
$id,
'type'
=> (new IsNewCustomerRule())->
getName(),
'ruleId' =>
$ruleId,
'value' =>
[ 'isNew' => true,
],
],
],
$this->context
);
static::
assertNotNull($this->conditionRepository->
search(new Criteria([$id]),
$this->context
)->
get($id));
}}