-
Notifications
You must be signed in to change notification settings - Fork 18
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
Variants GetVariantsMatch Service #442
Variants GetVariantsMatch Service #442
Conversation
-Added GetVariantsMatch functionality -Added api test
@magento run all tests |
-Syntax fixes
@magento run all tests |
$simples[] = $this->productRepository->get($sku); | ||
} | ||
$availableVariants = $this->getExpectedProductVariants($configurable, $simples); | ||
self::assertCount(9, $availableVariants, 'Wrong number of expected variants'); |
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.
We don't test here our API, this part already been tested by Magento. If this error occurs "Wrong number of expected variants" we would guess we have an issue with API, but the problem will be with Magento repositories.
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.
Removed this part. We will get null pointer anyway if its empty, but I guess that's an error and not test failure.
-Removed validation of irrelevant part of test
@magento run all tests |
@magento run Static Tests |
-Return empty response instead of error, if product variants do not match selection
-Test fix
@magento run Static Tests |
-Added getVariantsExactlyMatch service -Added getVariantsInclude service -Added test cases for these services
@magento run all tests |
-Static tests fix
…talog-storefront into 359_get-variants-match-service
@magento run all tests |
-Test fix
@magento run all tests |
@magento import pr to magento-commerce/catalog-storefront-ce |
@RuslanKostiv1 the pull request successfully imported. |
-Added GetVariantsMatch functionality
-Added api test
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Questions or comments
Code Review Checklist (*)
See detailed checklist