class NumberOfReviewsRuleTest extends TestCase
{ use IntegrationTestBehaviour;
private NumberOfReviewsRule
$rule;
protected function setUp(): void
{ $this->rule =
new NumberOfReviewsRule();
} public function testValidateWithMissingParameters(): void
{ try { $this->
getContainer()->
get('rule_condition.repository'
)->
create([ [ 'type' =>
$this->rule->
getName(),
'ruleId' => Uuid::
randomHex(),
],
], Context::
createDefaultContext());