private StaticDefinitionInstanceRegistry
$staticDefinitionRegistry;
protected function setUp(): void
{ $aggregationParser =
new AggregationParser();
$this->staticDefinitionRegistry =
new StaticDefinitionInstanceRegistry( [ new ProductDefinition(),
new ProductOptionDefinition(),
new PropertyGroupOptionDefinition(),
new ProductPriceDefinition(),
new ProductCategoryDefinition(),
new CategoryDefinition(),
],
$this->
createMock(ValidatorInterface::
class),
$this->
createMock(EntityWriteGatewayInterface::
class) );
$this->requestCriteriaBuilder =
new RequestCriteriaBuilder( $aggregationParser,
new ApiCriteriaValidator($this->staticDefinitionRegistry
),