diff --git a/dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_layered_navigation_custom_attribute.php b/dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_layered_navigation_custom_attribute.php index d94b42f604beb..a2072cb7918ac 100644 --- a/dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_layered_navigation_custom_attribute.php +++ b/dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_layered_navigation_custom_attribute.php @@ -9,10 +9,15 @@ use Magento\Eav\Api\AttributeRepositoryInterface; use Magento\TestFramework\Helper\CacheCleaner; use Magento\TestFramework\Workaround\Override\Fixture\Resolver; +use Magento\TestFramework\Eav\Model\GetAttributeSetByName; Resolver::getInstance()->requireDataFixture('Magento/Catalog/_files/attribute_set_based_on_default_set.php'); Resolver::getInstance()->requireDataFixture('Magento/Catalog/_files/categories.php'); +$objectManager = Bootstrap::getObjectManager(); +/** @var GetAttributeSetByName $getAttributeSetByName */ +$getAttributeSetByName = $objectManager->get(GetAttributeSetByName::class); +$attributeSet = $getAttributeSetByName->execute('second_attribute_set'); $eavConfig = Bootstrap::getObjectManager()->get(\Magento\Eav\Model\Config::class); $attribute = $eavConfig->getAttribute('catalog_product', 'test_configurable');