$this->productReviewSubscriber->
onReviewDeleted($event);
} public function testCreateReviewWithInvalidEntityName(): void
{ $ids =
[ Uuid::
randomHex(),
Uuid::
randomHex(),
];
$this->productReviewCountService->
expects(static::
never())->
method('updateReviewCount'
);
$this->productReviewSubscriber->
createReview($this->
getEntityWrittenEvent($ids, true
));
} public function testCreateReview(): void
{ $ids =
[ Uuid::
randomHex(),
Uuid::
randomHex(),
];
$this->productReviewCountService->
expects(static::
once())->
method('updateReviewCount'
)->
with($ids);
$this->productReviewSubscriber->
createReview($this->
getEntityWrittenEvent($ids));
}