$this->repository =
$this->
createMock(EntityRepository::
class);
$this->validator =
$this->
createMock(DataValidator::
class);
$this->config =
new StaticSystemConfigService([ 'test' =>
[ 'core.listing.showReview' => true,
'core.basicInformation.email' => 'noreply@example.com',
],
]);
$this->eventDispatcher =
$this->
createMock(EventDispatcherInterface::
class);
$this->route =
new ProductReviewSaveRoute( $this->repository,
$this->validator,
$this->config,
$this->eventDispatcher
);
} public function testSave(): void
{ $id = Uuid::
randomHex();
$productId = Uuid::
randomHex();