-
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
26064 issuefix #26066
26064 issuefix #26066
Conversation
Hi @divyajyothi5321. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@engcom-Bravo the static check is always failing at the part of the code which we haven't touched, please let us know what action we need to take here. |
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.
Hello @divyajyothi5321, thank you for your contribution! Can you please adjust the rest of the code so that static tests pass?
@krzksz I have made text change for the message and it is properly formatted. Can you Please let me know the exact place where I need to make the change to pass the static test. |
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.
Static tests ask you to remove @package Magento\Wishlist\Controller\Index
and add some meaningful description to the class.
@@ -204,7 +204,7 @@ public function execute() | |||
$error = __('Please enter an email address.'); | |||
} else { | |||
if (count($emails) > $emailsLeft) { | |||
$error = __('This wish list can be shared %1 more times.', $emailsLeft); | |||
$error = __('Maximum of %1 Emails can be Sent.', $emailsLeft); |
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.
Please adjust the wording to Maximum of %1 emails can be sent.
(letter casing).
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.
This still should be adjusted.
@krzksz even after changing the file as per your suggestion, the static test failed once again. could you please review and let us know the fix. |
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.
There is one error displayed:
PHPStan detected violation(s):
------ --------------------------------------------------------------------
Line app/code/Magento/Wishlist/Controller/Index/Send.php
------ --------------------------------------------------------------------
325 Method Magento\Wishlist\Controller\Index\Send::getRssLink() should
return mixed but return statement is missing.
------ --------------------------------------------------------------------
[ERROR] Found 1 error
FYI: you can check the error yourself by clicking the Details link next to the certain test.
@@ -204,7 +204,7 @@ public function execute() | |||
$error = __('Please enter an email address.'); | |||
} else { | |||
if (count($emails) > $emailsLeft) { | |||
$error = __('This wish list can be shared %1 more times.', $emailsLeft); | |||
$error = __('Maximum of %1 Emails can be Sent.', $emailsLeft); |
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.
This still should be adjusted.
Hey @divyajyothi5321, thank you for the contribution! |
Hi @krzksz, thank you for the review. |
@krzksz how to cover auto testing kindly can you please let me know |
HI @divyajyothi5321 @krzksz all changes covered by unit test, could you please review ? |
Hi @krzksz, thank you for the review. |
✔️ QA passed |
Functional test fails on 2.4-develop branch, fix in -> #26225 |
Hi @divyajyothi5321, thank you for your contribution! |
Description (*)
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)