Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #51276 [Notifier] Transport possible to have null (StaffNowa)
This PR was merged into the 6.4 branch. Discussion ---------- [Notifier] Transport possible to have null | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #51236 | License | MIT My test example of why I need to have properly transport null ```php public function testSmsSending(): void { $date = (new \DateTimeImmutable())->format('Y-m-d'); $stateta = new Stateta(); $stateta->setDate(new \DateTimeImmutable($date)); $stateta->setA95(0); $stateta->setDk(0); $this->entityManager->persist($stateta); $this->entityManager->flush(); $this->commandTester->execute([], [ 'verbosity' => OutputInterface::VERBOSITY_DEBUG ]); $this->commandTester->assertCommandIsSuccessful(); $notifierEvent = $this->getNotifierEvent(); self::assertEquals(null, $notifierEvent->getMessage()->getTransport()); self::assertEquals("+37061234567", $notifierEvent->getMessage()->getRecipientId()); self::assertNotificationIsQueued($notifierEvent); self::assertNotificationSubjectContains($notifierEvent->getMessage(), 'Company name'); self::assertNotificationTransportIsEqual($notifierEvent->getMessage(), null); } ``` Commits ------- 6120c4b [Notifier] Transport possible to have null
- Loading branch information
Showing
6 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters