public function testSaveReviewDeactivated(): void
{ $ids =
new IdsCollection();
$this->systemConfigServiceMock->
method('get'
)->
with('core.listing.showReview'
)->
willReturn(false
);
$requestBag =
new RequestDataBag(['test' => 'test'
]);
static::
expectException(ReviewNotActiveExeption::
class);
$this->controller->
saveReview( $ids->
get('productId'
),
$requestBag,
$this->
createMock(SalesChannelContext::
class) );
} public function testSaveReview(): void
{ $ids =
new IdsCollection();
$this->systemConfigServiceMock->
method('get'
)->
with('core.listing.showReview'
)->
willReturn(true
);