Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Notifier] Introduce PHPUnit constraints and assertions for the Notifier#46895
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
0b2c788 to3864f8dComparesrc/Symfony/Bundle/FrameworkBundle/Test/NotificationAssertionsTrait.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
.../Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/NotifierController.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
3864f8d toe3a1aa0Compare
kbond left a comment
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.
Nice work@ismail1432!
This makes sense to me and looks to match the email assertions. I'm not that familiar with notifier but should there be assertions on:
- Who the notification was sent to?
- What was in the body?
@OskarStark, you've been wanting this type of feature for some time and use notifier in your app(s). Do these assertions cover your needs?
src/Symfony/Bundle/FrameworkBundle/Test/NotificationAssertionsTrait.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
047a607 to356e312Compareismail1432 commentedJul 12, 2022
I add more assertion, my point here is to introduce basic assertions and add more later by me or community 👍 |
kbond commentedJul 12, 2022
Sure, that's fair! |
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Test/Constraint/NotificationTransportIsEqual.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Test/Constraint/NotificationImportanceIsEqual.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
766d1ca tob6b6383Compareb6b6383 to747e9cbComparefabpot commentedJul 24, 2022
Thank you@ismail1432. |
…(javiereguiluz)This PR was merged into the 6.2 branch.Discussion----------[Notifier] Rename some arguments in notifier assertions| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | if this is merged, I'll updatesymfony/symfony-docs#17116While documenting#46895, I thought about renaming some arguments. So here's a PR with that proposal for your consideration. Thanks.Commits-------b5178dd [Notifier] Rename some arguments in notifier assertions
Uh oh!
There was an error while loading.Please reload this page.
Since 4.4 we have assertions for email, the goal of this PR is to introduce the same kind of assertions for the Notifier component.