-
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
Replace deprecated constructs from Magento_Newsletter PHPUnit. #27613
Replace deprecated constructs from Magento_Newsletter PHPUnit. #27613
Conversation
Hi @AndreyChorniy. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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 @AndreyChorniy, could you please fix the same issues as already mentioned in your adjacent PR #27615.
Thank you! :)
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.
✔️ Huge amount of work, congratulations!
Hi @lbajsarowicz, thank you for the review.
|
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 tests still fail.
PHP Fatal error: Declaration of Magento\Newsletter\Test\Unit\Block\Adminhtml\Queue\PreviewTest::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void in /home/dev/sites/bravo/app/code/Magento/Newsletter/Test/Unit/Block/Adminhtml/Queue/PreviewTest.php on line 174
Pull Request state was updated. Re-review required.
Hello @dmytro-ch, |
@magento run all tests |
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.
@AndreyChorniy please fix the static test:
PHP Code Mess has found error(s):
/var/www/html/app/code/Magento/Newsletter/Test/Unit/Block/Adminhtml/Template/PreviewTest.php:28 The class PreviewTest has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
And please resolve the conflicts |
…-newsletter # Conflicts: # app/code/Magento/Newsletter/Test/Unit/Block/Adminhtml/Queue/PreviewTest.php # app/code/Magento/Newsletter/Test/Unit/Block/Adminhtml/Template/PreviewTest.php # app/code/Magento/Newsletter/Test/Unit/Controller/Manage/SaveTest.php # app/code/Magento/Newsletter/Test/Unit/Model/ProblemTest.php # app/code/Magento/Newsletter/Test/Unit/Model/Queue/TransportBuilderTest.php # app/code/Magento/Newsletter/Test/Unit/Model/QueueTest.php # app/code/Magento/Newsletter/Test/Unit/Model/Template/FilterTest.php # app/code/Magento/Newsletter/Test/Unit/Model/TemplateTest.php
Hi @AndreyChorniy, thank you for your contribution! |
Description (*)
Added compatibility PHPUnit8 for Magento Newsletter module
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)