private SendMailAction
$action;
protected function setUp(): void
{ $this->mailTemplate =
new MailTemplateEntity();
$this->mailService =
$this->
createMock(AbstractMailService::
class);
$this->mailTemplateRepository =
$this->
createMock(EntityRepository::
class);
$this->languageLocaleProvider =
$this->
createMock(LanguageLocaleCodeProvider::
class);
$this->translator =
$this->
createMock(Translator::
class);
$this->entitySearchResult =
$this->
createMock(EntitySearchResult::
class);
$this->action =
new SendMailAction( $this->mailService,
$this->mailTemplateRepository,
$this->
createMock(LoggerInterface::
class),
$this->
createMock(EventDispatcherInterface::
class),
$this->
createMock(EntityRepository::
class),
$this->translator,
$this->
createMock(Connection::
class),
$this->languageLocaleProvider,
true
);
}