feat: upgrade phpunit to 12.5
This commit is contained in:
@@ -81,7 +81,7 @@ class MailjetNewsletterEventHandlerTest extends TestCase
|
||||
$consent = new NewsletterConsent('[email protected]', 123);
|
||||
$consent->markRevoked(new \DateTimeImmutable('2026-04-29T11:00:00+00:00'));
|
||||
|
||||
$repository = $this->createMock(NewsletterConsentRepository::class);
|
||||
$repository = $this->createStub(NewsletterConsentRepository::class);
|
||||
$repository->method('findOneByEmailAndListId')->willReturn($consent);
|
||||
|
||||
$entityManager = $this->createMock(EntityManagerInterface::class);
|
||||
@@ -103,7 +103,7 @@ class MailjetNewsletterEventHandlerTest extends TestCase
|
||||
$consent = new NewsletterConsent('[email protected]', 123);
|
||||
$consent->markConfirmed(new \DateTimeImmutable('2026-04-29T11:00:00+00:00'));
|
||||
|
||||
$repository = $this->createMock(NewsletterConsentRepository::class);
|
||||
$repository = $this->createStub(NewsletterConsentRepository::class);
|
||||
$repository->method('findOneByEmailAndListId')->willReturn($consent);
|
||||
|
||||
$entityManager = $this->createMock(EntityManagerInterface::class);
|
||||
@@ -126,7 +126,7 @@ class MailjetNewsletterEventHandlerTest extends TestCase
|
||||
$consent = new NewsletterConsent('[email protected]', 123);
|
||||
$consent->markRevoked(new \DateTimeImmutable('2026-04-29T11:00:00+00:00'));
|
||||
|
||||
$repository = $this->createMock(NewsletterConsentRepository::class);
|
||||
$repository = $this->createStub(NewsletterConsentRepository::class);
|
||||
$repository->method('findOneByEmailAndListId')->willReturn($consent);
|
||||
|
||||
$entityManager = $this->createMock(EntityManagerInterface::class);
|
||||
|
||||
Reference in New Issue
Block a user