Skip to content

Commit c0b9a76

Browse files
committed
MAGETWO-61164: [Backport] - Configurable Product visible on the Category when options are Out of Stock and Disabled - for 2.1
1 parent 47ab66b commit c0b9a76

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dev/tests/integration/testsuite/Magento/Framework/Search/_files/product_configurable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
$attributeValues = [];
3434
$attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default');
3535
$associatedProductIds = [];
36-
$productIds = [1010, 1020];
36+
$productIds = [10010, 10020];
3737
array_shift($options); //remove the first option which is empty
3838

3939
$isFirstOption = true;
@@ -110,11 +110,11 @@
110110
$product->setExtensionAttributes($extensionConfigurableAttributes);
111111

112112
$product->setTypeId(Configurable::TYPE_CODE)
113-
->setId(1001)
113+
->setId(10001)
114114
->setAttributeSetId($attributeSetId)
115115
->setWebsiteIds([1])
116116
->setName('Configurable Product')
117-
->setSku('configurable')
117+
->setSku('configurable_searchable')
118118
->setVisibility(Visibility::VISIBILITY_BOTH)
119119
->setStatus(Status::STATUS_ENABLED)
120120
->setStockData(['use_config_manage_stock' => 1, 'is_in_stock' => 1]);

dev/tests/integration/testsuite/Magento/Framework/Search/_files/product_configurable_rollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$productRepository = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
1717
->get(\Magento\Catalog\Api\ProductRepositoryInterface::class);
1818

19-
foreach (['simple_1010', 'simple_1020', 'configurable'] as $sku) {
19+
foreach (['simple_10010', 'simple_10020', 'configurable_searchable'] as $sku) {
2020
try {
2121
$product = $productRepository->get($sku, false, null, true);
2222

dev/tests/integration/testsuite/Magento/Framework/Search/_files/product_configurable_with_disabled_child.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
$productRepository = Bootstrap::getObjectManager()
1414
->create(ProductRepositoryInterface::class);
1515

16-
$product = $productRepository->get('simple_1020');
16+
$product = $productRepository->get('simple_10020');
1717
$product->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_DISABLED);
1818
$productRepository->save($product);

0 commit comments

Comments
 (0)