-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add TesterTrait::assertCommandIsSuccessful() helper #41851
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
19059dc
to
01db8f0
Compare
Hey! I think @Jean85 has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
It looks like tests on Travis with PHP 8.0 fail as they are run against |
The |
0d18b9c
to
db39567
Compare
Thanks for your help @xabbuh |
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 the PR. I don't see any backward incompatible change here.
LGTM but the CHANGELOG file needs to be updated
Updated @chalasr |
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.
rebase needed
5.4 | ||
--- | ||
|
||
* Add `TesterTrait::assertCommandIsSuccessful()` to test command |
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.
missing space at start of line
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.
Good catch
@@ -33,7 +33,7 @@ | |||
"symfony/dependency-injection": "^4.4|^5.0|^6.0", | |||
"symfony/expression-language": "^4.4|^5.0|^6.0", | |||
"symfony/config": "^4.4|^5.0|^6.0", | |||
"symfony/console": "^4.4|^5.0|^6.0", | |||
"symfony/console": "^5.4|^6.0", |
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 conflict line should also be updated
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.
done
@@ -38,7 +38,7 @@ | |||
"doctrine/persistence": "^1.3|^2.0", | |||
"symfony/asset": "^5.3|^6.0", | |||
"symfony/browser-kit": "^4.4|^5.0|^6.0", | |||
"symfony/console": "^5.2|^6.0", | |||
"symfony/console": "^5.4|^6.0", |
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 conflict line should be updated too
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.
done
4d7badc
to
434e3d2
Compare
434e3d2
to
6221527
Compare
Thank you @yoannrenard. |
This PR introduces a new helper TesterTrait::assertCommandIsSuccessful() that aims to help testing the result of a command.
This is inspired by BrowserKitAssertionsTrait::assertResponseIsSuccessful