$ruleConstraints =
$this->rule->
getConstraints();
static::
assertArrayHasKey('renderedFieldValue',
$ruleConstraints, 'Rule Constraint renderedFieldValue is not defined'
);
} public function testMatch(): void
{ $this->order->
assign(['customFields' =>
[ self::CUSTOM_FIELD_NAME => 'my_invalid_value',
]]);
$scope =
new FlowRuleScope($this->order,
new Cart('test'
),
$this->
createMock(SalesChannelContext::
class));
$this->rule->
assign( [ 'operator' => '=',
'renderedField' =>
[ 'type' => 'string',
'name' => self::CUSTOM_FIELD_NAME,
],
'renderedFieldValue' => 'my_test_value',
] );