private Translator
$translator;
/**
* @var EntitySearchResult<MailTemplateCollection>&MockObject
*/
private EntitySearchResult
$entitySearchResult;
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),