-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add SMSense bridge #53734
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
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/SMSenseTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/SMSenseTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/SMSenseTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/Tests/SMSenseTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/Tests/SMSenseTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Tests/Exception/UnsupportedSchemeExceptionTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/Tests/SMSenseTransportFactoryTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/Tests/SMSenseTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SMSense/Tests/SMSenseTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Exception/UnsupportedSchemeException.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.
The class prefix should be Smsense
to avoid having a package named s-m-ense-notifier
Made the changes |
@jimiero Can you have a look at the tests, some are broken for this new notifier. |
Changed them and now the tests are not failing anymore. |
src/Symfony/Component/Notifier/Bridge/Smsense/SmsenseTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Smsense/Tests/SmsenseTransportTest.php
Outdated
Show resolved
Hide resolved
@jimiero Tests are still broken apparently, see https://github.com/symfony/symfony/actions/runs/7955729597/job/21715188628?pr=53734#step:8:126 |
Works just fine if I do this instead `$response = $this->createMock(ResponseInterface::class);
if I do:
it fails seems, any suggestions? |
My bad with suggestion to use that version of mock, you put encoded body into json mock which expects to get php array instead. Either you can remove the fixture file and inject the php array into json mock or use again interface mock again. |
Yep that was it, pushed changes by removing fixtures file and replaced JsonMockResponse input with a php array instead. |
021fe65
to
a1748de
Compare
Thank you @jimiero. |
SMSense is a Romanian sms provider.