Skip to content

Commit 2f8035e

Browse files
committed
MC-35490: Price sort order not working properly
1 parent e3f4a0c commit 2f8035e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/integration/testsuite/Magento/ConfigurableProduct/_files/product_configurable_with_assigned_simples.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Magento\ConfigurableProduct\Helper\Product\Options\Factory;
1717
use Magento\ConfigurableProduct\Model\Product\Type\Configurable;
1818
use Magento\Eav\Api\Data\AttributeOptionInterface;
19+
use Magento\Eav\Model\Config;
1920
use Magento\TestFramework\Helper\Bootstrap;
2021
use Magento\TestFramework\Workaround\Override\Fixture\Resolver;
2122

@@ -26,6 +27,9 @@
2627
$installer = Bootstrap::getObjectManager()->create(CategorySetup::class);
2728
$attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default');
2829

30+
$eavConfig = Bootstrap::getObjectManager()->get(Config::class);
31+
$attribute = $eavConfig->getAttribute('catalog_product', 'test_configurable');
32+
2933
$product = Bootstrap::getObjectManager()->create(Product::class);
3034
$product->setTypeId(Configurable::TYPE_CODE)
3135
->setAttributeSetId($attributeSetId)

0 commit comments

Comments
 (0)