Skip to content

Commit d1ed33c

Browse files
committed
MAGETWO-90739: Out of stock options for configurable products still show up in search and layered navigation if Elasticsearch is enabled
1 parent a0ab4e4 commit d1ed33c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/code/Magento/Elasticsearch/Test/Unit/Model/Indexer/Plugin/DependencyUpdaterPluginTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class DependencyUpdaterPluginTest extends \PHPUnit\Framework\TestCase
3333
*/
3434
private $providerMock;
3535

36+
/**
37+
* {@inheritdoc}
38+
*/
3639
protected function setUp()
3740
{
3841
$this->configMock = $this->getMockBuilder(Config::class)

app/code/Magento/Elasticsearch/Test/Unit/Model/Indexer/Plugin/StockedProductsFilterPluginTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ class StockedProductsFilterPluginTest extends \PHPUnit\Framework\TestCase
4848
*/
4949
private $plugin;
5050

51+
/**
52+
* {@inheritdoc}
53+
*/
5154
protected function setUp()
5255
{
5356
$this->configMock = $this->getMockBuilder(Config::class)->disableOriginalConstructor()->getMock();

dev/tests/integration/testsuite/Magento/Elasticsearch/_files/configurable_attribute.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
$installer = Bootstrap::getObjectManager()->create(\Magento\Catalog\Setup\CategorySetup::class);
1818

1919
if (!$attribute->getId()) {
20-
2120
/** @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */
2221
$attribute = Bootstrap::getObjectManager()->create(
2322
\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class

dev/tests/integration/testsuite/Magento/Elasticsearch/_files/configurable_attribute_rollback.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@
1010

1111
$registry->unregister('isSecureArea');
1212
$registry->register('isSecureArea', true);
13-
$productCollection = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
14-
->get(\Magento\Catalog\Model\ResourceModel\Product\Collection::class);
15-
foreach ($productCollection as $product) {
16-
$product->delete();
17-
}
1813

1914
$eavConfig = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Eav\Model\Config::class);
2015
$attribute = $eavConfig->getAttribute('catalog_product', 'test_configurable');

0 commit comments

Comments
 (0)