-
Notifications
You must be signed in to change notification settings - Fork 131
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
33306: Eliminated AspectMock from the ParallelGroupSorterTest class #857
33306: Eliminated AspectMock from the ParallelGroupSorterTest class #857
Conversation
Hello, @jilu1 This task was finished without creating new singletons, so it is not a blocker. You can proceed with the code review. Thanks, Bohdan |
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 @bohdan-harniuk
Thank you for your contribution.
Great job.
@magento import pull request to https://github.com/magento-commerce/magento2-functional-testing-framework |
@okolesnyk the pull request successfully imported. |
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 fix the following unit test error.
1) tests\unit\Magento\FunctionalTestFramework\Util\TestGeneratorTest::testEntityException
Error: Call to a member function readTestData() on null
/home/runner/work/magento2-functional-testing-framework/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/Handlers/TestObjectHandler.php:220
/home/runner/work/magento2-functional-testing-framework/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/Handlers/TestObjectHandler.php:65
/home/runner/work/magento2-functional-testing-framework/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Util/TestGenerator.php:391
/home/runner/work/magento2-functional-testing-framework/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Util/TestGenerator.php:244
/home/runner/work/magento2-functional-testing-framework/magento2-functional-testing-framework/dev/tests/unit/Magento/FunctionalTestFramework/Util/TestGeneratorTest.php:60
ERRORS!
Tests: 292, Assertions: 569, Errors: 1, Skipped: 1, Incomplete: 4.
Please update with the latest |
Hello, @jilu1! I'll look at it, thank you! |
…ing-framework into improvement/mftf-33306-eliminate-aspect-mock-from-paraller-group-sorter-test
d98d930
Hello, @jilu1! I've found and fixed that error after the branch actualisation. Thanks, Bohdan |
)->make(); | ||
|
||
AspectMock::double(TestObjectHandler::class, ['getInstance' => $mockHandler])->make(); | ||
$this->createMockForTest(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.
$actionCount ([300, 275]) for this test is different from what's in createMockForTest() ([300, 275, 300, 275]). Please check if affects the purpose of this 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.
Thank you, @jilu1, for the great point!
I guess that I missed this one. Now it is fixed. Please, check!
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.
@bohdan-harniuk
Changes look good. Please check one comment inlined.
Description
Eliminated usage of AspectMock from the \tests\unit\Magento\FunctionalTestFramework\Util\Sorter\ParallelGroupSorterTest.
Fixed Issues (if relevant)
Contribution checklist