-
Notifications
You must be signed in to change notification settings - Fork 29
Add missed $searchCriteriaSearch property #147
Add missed $searchCriteriaSearch property #147
Conversation
- Analyse against phpstan returned ""[OK] No errors"
Hello, thank you for your pull request. I will start to process this PR and get back to you if I need any more information. |
Ok! I am glad to help |
@@ -19,6 +19,9 @@ class TierPriceTest extends \PHPUnit\Framework\TestCase | |||
/** @var \Magento\Customer\Api\GroupRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject */ | |||
protected $groupRepositoryInterface; | |||
|
|||
/** @var \Magento\Framework\Api\SearchCriteria|\PHPUnit_Framework_MockObject_MockObject */ | |||
protected $searchCriteriaSearch; |
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.
I think looking at it's usage we do not need this as a call variable but could make it local to the method only. Would you be up for making this change and then validating the phpstan and phpunit test again?
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.
Sure! Besides $searchCriteriaSearch
, I believe I should do the same for $objectManagerHelper
and $searchCriteriaBuilder
-- both are also only local and not instantiated via dependency injection.
@thicolares thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Thank you for your effort here. As we are focusing import work on the async-import project we will be closing this project for now. |
Hi @thicolares, thank you for your contribution! |
Description (*)
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)