'quantityStart' => 1,
'ruleId' =>
$this->ids->
get('rule-b'
),
'price' =>
[ ['currencyId' => Defaults::CURRENCY, 'gross' => 2222, 'net' => 2222, 'linked' => false
],
],
],
],
];
$this->
getContainer()->
get('rule.repository'
)->
create([ ['id' =>
$this->ids->
get('rule-a'
), 'name' => 'testA', 'priority' => 1, 'payload' =>
serialize(new AndRule([new CartAmountRule(Rule::OPERATOR_GTE, 0
)]))],
['id' =>
$this->ids->
get('rule-b'
), 'name' => 'testB', 'priority' => 2, 'payload' =>
serialize(new AndRule([new CartAmountRule(Rule::OPERATOR_NEQ, 0
)]))],
], Context::
createDefaultContext());
$this->
getContainer()->
get('product.repository'
)->
create( [$data],
Context::
createDefaultContext() );
$this->browser
->
request( 'POST',