private LoggerInterface
$logger;
protected function setUp(): void
{ $this->mailFactory =
$this->
createMock(AbstractMailFactory::
class);
$this->eventDispatcher =
$this->
createMock(EventDispatcherInterface::
class);
$this->templateRenderer =
$this->
createMock(StringTemplateRenderer::
class);
$this->salesChannelRepository =
$this->
createMock(EntityRepository::
class);
$this->logger =
$this->
createMock(LoggerInterface::
class);
$this->mailService =
new MailService( $this->
createMock(DataValidator::
class),
$this->templateRenderer,
$this->mailFactory,
$this->
createMock(AbstractMailSender::
class),
$this->
createMock(EntityRepository::
class),
$this->
createMock(SalesChannelDefinition::
class),
$this->salesChannelRepository,
$this->
createMock(SystemConfigService::
class),
$this->eventDispatcher,
$this->
createMock(UrlGeneratorInterface::
class),
$this->logger,
);