Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Messenger] Transport possible to have null#51236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
StaffNowa wants to merge1 commit intosymfony:6.3fromStaffNowa:6.3
Closed

[Messenger] Transport possible to have null#51236

StaffNowa wants to merge1 commit intosymfony:6.3fromStaffNowa:6.3

Conversation

@StaffNowa
Copy link
Contributor

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
LicenseMIT

Technically we can have for our own testing purposes the tests

SMSBIURAS_DSN="null://null"

@carsonbotcarsonbot added this to the6.3 milestoneAug 2, 2023
@carsonbotcarsonbot changed the titleBug. Transport possible to have null[Messenger] Bug. Transport possible to have nullAug 3, 2023
@OskarStark
Copy link
Contributor

If this code is already in 5.4 and it is considered a bugfix, please target 5.4. otherwise 6.4 as a feature. Thanks

@OskarStarkOskarStark changed the title[Messenger] Bug. Transport possible to have null[Messenger] Transport possible to have nullAug 3, 2023
@StaffNowaStaffNowa deleted the branchsymfony:6.3August 3, 2023 15:30
@StaffNowaStaffNowa deleted the 6.3 branchAugust 3, 2023 15:30
fabpot added a commit that referenced this pull requestOct 2, 2023
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       | MITMy test example of why I need to have properly transport null```phppublic 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
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkAwaiting requested review from OskarStarkOskarStark is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

3 participants

@StaffNowa@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp