static::
assertArrayHasKey('operator',
$ruleConstraints, 'Rule Constraint operator is not defined'
);
static::
assertArrayHasKey('renderedField',
$ruleConstraints, 'Rule Constraint renderedField is not defined'
);
static::
assertArrayHasKey('renderedFieldValue',
$ruleConstraints, 'Rule Constraint renderedFieldValue is not defined'
);
static::
assertArrayHasKey('selectedField',
$ruleConstraints, 'Rule Constraint selectedField is not defined'
);
static::
assertArrayHasKey('selectedFieldSet',
$ruleConstraints, 'Rule Constraint selectedFieldSet is not defined'
);
} public function testBooleanCustomFieldFalseWithNoValue(): void
{ $this->
setupRule(false, 'bool'
);
$this->
setCustomerCustomFields([]);
static::
assertTrue($this->rule->
match($this->scope
));
} public function testMatchWithWrongRuleScope(): void
{ $scope =
$this->
createMock(TestRuleScope::
class);
$match =
$this->rule->
match($scope);
static::
assertFalse($match);
}