Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
ProductReviewEntity example
public
function
testLoadReview
(
)
: void
{
$ids
=
new
IdsCollection
(
)
;
$this
->systemConfigServiceMock->
method
(
'get'
)
->
with
(
'core.listing.showReview'
)
->
willReturn
(
true
)
;
$requestBag
=
new
RequestDataBag
(
[
'test' => 'test'
]
)
;
$request
=
new
Request
(
[
'test' => 'test'
]
)
;
$productReview
=
new
ProductReviewEntity
(
)
;
$productReview
->
setUniqueIdentifier
(
$ids
->
get
(
'productReview'
)
)
;
$reviewResult
=
new
ReviewLoaderResult
(
'review',
1,
new
ProductReviewCollection
(
[
$productReview
]
)
,
null,
new
Criteria
(
)
,
Context::
createDefaultContext
(
)
)
;
$this
->productReviewLoaderMock->
method
(
'load'
)
->
with
(
$request
,