Skip to content

Commit 0eeadc3

Browse files
committed
MC-35013: SKU search in Advanced Search page doesn't work
1 parent 4ccc038 commit 0eeadc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dev/tests/integration/testsuite/Magento/CatalogSearch/_files/product_for_search_with_hyphen_in_sku.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
declare(strict_types=1);
88

99
use Magento\Catalog\Api\ProductRepositoryInterface;
10+
use Magento\Catalog\Api\ProductAttributeRepositoryInterface;
1011
use Magento\Catalog\Model\Product\Attribute\Source\Status;
1112
use Magento\Catalog\Model\Product\Type;
1213
use Magento\Catalog\Model\Product\Visibility;
@@ -19,6 +20,11 @@
1920

2021
/** @var ObjectManager $objectManager */
2122
$objectManager = Bootstrap::getObjectManager();
23+
24+
/** @var ProductAttributeRepositoryInterface $productAttributeRepository */
25+
$productAttributeRepository = $objectManager->get(ProductAttributeRepositoryInterface::class);
26+
$attribute = $productAttributeRepository->get('test_searchable_attribute');
27+
2228
/** @var ProductRepositoryInterface $productRepository */
2329
$productRepository = $objectManager->get(ProductRepositoryInterface::class);
2430
/** @var ProductFactory $productFactory */

0 commit comments

Comments
 (0)