Skip to content

Commit b8a8cc7

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 6531957 commit b8a8cc7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/AdapterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,23 +458,23 @@ public function testAdvancedSearchCompositeProductWithDisabledChild()
458458
{
459459
/** @var \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute */
460460
$attribute = $this->objectManager->get(\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class)
461-
->loadByCode(\Magento\Catalog\Model\Product::ENTITY, 'test_configurable');
461+
->loadByCode(\Magento\Catalog\Model\Product::ENTITY, 'test_configurable_searchable');
462462
/** @var \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection $selectOptions */
463463
$selectOptions = $this->objectManager
464464
->create(\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection::class)
465465
->setAttributeFilter($attribute->getId());
466466

467467
$firstOption = $selectOptions->getFirstItem();
468468
$firstOptionId = $firstOption->getId();
469-
$this->requestBuilder->bind('test_configurable', $firstOptionId);
469+
$this->requestBuilder->bind('test_configurable_searchable', $firstOptionId);
470470
$this->requestBuilder->setRequestName('filter_out_of_stock_child');
471471

472472
$queryResponse = $this->executeQuery();
473473
$this->assertEquals(0, $queryResponse->count());
474474

475475
$secondOption = $selectOptions->getLastItem();
476476
$secondOptionId = $secondOption->getId();
477-
$this->requestBuilder->bind('test_configurable', $secondOptionId);
477+
$this->requestBuilder->bind('test_configurable_searchable', $secondOptionId);
478478
$this->requestBuilder->setRequestName('filter_out_of_stock_child');
479479

480480
$queryResponse = $this->executeQuery();

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
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2016 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

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
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2016 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2016 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

0 commit comments

Comments
 (0)