Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ProductOptionDefinition example
private
RequestCriteriaBuilder
$requestCriteriaBuilder
;
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
,