-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
magento/magento2#: GraphQl. RevokeCustomerToken. Test coverage. #26464
magento/magento2#: GraphQl. RevokeCustomerToken. Test coverage. #26464
Conversation
Hi @atwixfirster. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Notice: QA not applicable |
Hi @dmytro-ch, thank you for the review. |
This mutation is already covered by |
@lenaorobei , could you please clarify. For which GraphQl modules unit tests are applicable? Thank you! |
@atwixfirster I guess, @lenaorobei meant that the unit tests are useless for GraphQl in general. It's better to add an API-functional test if you wish to cover some logic. :) |
Thank you, @dmytro-ch , for the explanation. However, I would like to know an official Magento position about Unit Tests. Because some GraphQl modules already covered by Unit and API-functional tests. For example,
So, I want to understand why Unit tests are good for some GraphQl classes and what is the difference between Also good to know for which GraphQl classes we can create Unit Tests. @lenaorobei , could you please clarify? Thank you so much! |
Hi @atwixfirster, Yes, @dmytro-ch is correct about the value of unit tests. They make sense only in the development phase. I left the same comment in PRs with unit tests you've mentioned #26125 (comment) and asked @lbajsarowicz to not contribute more in this.
There are no such classes. Positive and negative scenarios for queries and mutations should be covered with API functional tests. For more information please refer to the Magento definition of done. |
Understood Thank you very much, @lenaorobei ! |
Hi @atwixfirster, thank you for your contribution! |
Description (*)
Pull request adds a unit test for
\Magento\CustomerGraphQl\Model\Resolver\RevokeCustomerToken
class.Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Thank you!