Skip to content

Quote items qty validation tests on default and not default stocks #652

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

Merged
merged 51 commits into from
Mar 19, 2018

Conversation

VitaliyBoyko
Copy link
Contributor

@VitaliyBoyko VitaliyBoyko commented Mar 10, 2018

  1. Add new service for InventorySalesAPI intended to be used to check whether customer can buy or put to Shopping Cart needed amount of product #520
    Integrational tests for check whether a customer can buy or put into Shopping Cart needed an amount of product

@VitaliyBoyko VitaliyBoyko self-assigned this Mar 10, 2018
@VitaliyBoyko VitaliyBoyko changed the title PROTOTYPE DON'T MERGE Added quote items qty validation Quote items qty validation tests on default and not default stocks Mar 11, 2018
private function getProductBySku(string $sku): ProductInterface
{
$product = $this->productRepository->get($sku);
$product->setIsSalable(true);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to set is_sallable flag forcible
If product has wrong status it is a bug

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

VitaliyBoyko and others added 23 commits March 15, 2018 22:35
…com:magento-engcom/msi into msi-520-is-product-salable-integration-test
…i-520-is-product-salable-integration-test' of https://github.com/magento-engcom/msi into msi-520-is-product-salable-integration-test

# Conflicts:
#	app/code/Magento/InventorySales/etc/di.xml
…e-for-requested-qty

Add IsProductSalableForRequestedQty service
@maghamed maghamed changed the base branch from msi-520-is-product-salable-for-requested-qty to msi_393 March 19, 2018 10:14
@maghamed maghamed merged commit 77fb6a7 into msi_393 Mar 19, 2018
@maghamed maghamed deleted the msi-520-is-product-salable-integration-test branch December 11, 2018 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants