-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add Unifonic notifier bridge #53092
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
seferov
commented
Dec 15, 2023
Q | A |
---|---|
Branch? | 7.1 |
Bug fix? | no |
New feature? | yes |
Deprecations? | no |
Issues | - |
License | MIT |
08366b0
to
6ffa962
Compare
return (new UnifonicTransport('S3cr3t', 'Sender', $client ?? new MockHttpClient())) | ||
->setHost($host); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return (new UnifonicTransport('S3cr3t', 'Sender', $client ?? new MockHttpClient())) | |
->setHost($host); | |
return (new UnifonicTransport('S3cr3t', 'Sender', $client ?? new MockHttpClient()))->setHost($host); |
|
||
public function testSendSuccess() | ||
{ | ||
$response = $this->createMock(ResponseInterface::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use MockResponse
/JsonMockResponse
instead?
src/Symfony/Component/Notifier/Bridge/Unifonic/UnifonicTransportFactory.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, this is much appreciated. Please check my comments, thanks.
In parallel, we also need a PR against symfony/symfony-docs
and symfony/recipes-contrib
6ffa962
to
73dea2a
Compare
Thank you @seferov. |