class TestInternalFieldsAreFiltered extends SerializationFixture
{ /**
* @return RuleCollection|RuleEntity
*/
public function getInput(): EntityCollection|Entity
{ $ruleCollection =
new RuleCollection();
$rule =
new RuleEntity();
$rule->
setId('f343a3c119cf42a7841aa0ac5094908c'
);
$rule->
setName('Test rule'
);
$rule->
setDescription('Test description'
);
$rule->
setPayload(new AndRule([new TrueRule(),
new FalseRule()]));
$rule->
internalSetEntityData('rule',
new FieldVisibility([]));
$ruleCollection->
add($rule);
return $ruleCollection;
} /**
* @return array<string, mixed>
*/