|
|
@@ -46,6 +46,7 @@ class MailerTest extends TestCase
|
|
|
{
|
|
|
$this->symfonyMailer = $this->getMockBuilder(MailerInterface::class)->disableOriginalConstructor()->getMock();
|
|
|
$this->opentalentNoReplyEmailAddress = 'noreply@opentalent.fr';
|
|
|
+ $this->opentalentMailReportEmailAddress = 'mail.report@opentalent.fr';
|
|
|
$this->builderIterator = $this->getMockBuilder(BuilderIterator::class)->disableOriginalConstructor()->getMock();
|
|
|
$this->stringsUtils = $this->getMockBuilder(StringsUtils::class)->disableOriginalConstructor()->getMock();
|
|
|
$this->entityManager = $this->getMockBuilder(EntityManagerInterface::class)->disableOriginalConstructor()->getMock();
|
|
|
@@ -62,6 +63,7 @@ class MailerTest extends TestCase
|
|
|
->setConstructorArgs([
|
|
|
$this->symfonyMailer,
|
|
|
$this->opentalentNoReplyEmailAddress,
|
|
|
+ $this->opentalentMailReportEmailAddress,
|
|
|
$this->builderIterator,
|
|
|
$this->stringsUtils,
|
|
|
$this->entityManager,
|
|
|
@@ -125,9 +127,8 @@ class MailerTest extends TestCase
|
|
|
;
|
|
|
|
|
|
$mailer
|
|
|
- ->expects(self::once())
|
|
|
+ ->expects(self::never())
|
|
|
->method('sendReport')
|
|
|
- ->with($emailsCollection)
|
|
|
;
|
|
|
|
|
|
$this->entityManager
|