-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Notifier] [SMSBiuras] true/false mismatch for test_mode option
#48262
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
| 'message' => $message->getSubject(), | ||
| 'from' => $this->from, | ||
| 'test' => $this->testMode ? 0 : 1, | ||
| 'test' => !$this->testMode ? 0 : 1, |
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.
| 'test' => !$this->testMode ? 0 : 1, | |
| 'test' => $this->testMode ? 1 : 0, |
true/false mismatch for test_mode option
|
Could you please add test case to avoid further regressions? |
true/false mismatch for test_mode optiontrue/false mismatch for test_mode option
Added tests for test_mode |
src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php
Outdated
Show resolved
Hide resolved
|
And please make fabbot happy 😄 |
Fabbot happy too :D By the way, maybe I need to create for another branches changes to next up releases? |
true/false mismatch for test_mode optiontrue/false mismatch for test_mode option
|
No, we will handle the upmerge of your PR into newer branches 👌🏻 |
true/false mismatch for test_mode optiontrue/false mismatch for test_mode option
|
Thank you @StaffNowa. |
…`test_mode` option (StaffNowa) This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Notifier] [SMSBiuras] `true`/`false` mismatch for `test_mode` option | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Moved from LightSMS service into SMSBiuras and found an issue. SMSBIURAS_DSN=smsbiuras://UID:API_KEY@default?from=FROM&test_mode=0 Documentation is good but in the code bug. If test_mode = 0 - does not send SMS. If test_mode = 1 - sends SMS. Boolean true | false mismatch. SMSBiuras API documentation https://docs.smsbiuras.lt/ Commits ------- cd7e4d6 [Notifier] [SMSBiuras] `true`/`false` mismatch for `test_mode` option
…OskarStark) This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] [SmsBiuras] Simplify test and data provider | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT | Doc PR | Follows * #48262 Commits ------- 9221451 [Notifier][SmsBiuras] Simplify test and data provider
Moved from LightSMS service into SMSBiuras and found an issue.
SMSBIURAS_DSN=smsbiuras://UID:API_KEY@default?from=FROM&test_mode=0
Documentation is good but in the code bug. If test_mode = 0 - does not send SMS. If test_mode = 1 - sends SMS.
Boolean true | false mismatch.
SMSBiuras API documentation https://docs.smsbiuras.lt/