File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
dev/tests/integration/testsuite/Magento/CatalogSearch/_files Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 7
7
declare (strict_types=1 );
8
8
9
9
use Magento \Catalog \Api \ProductRepositoryInterface ;
10
+ use Magento \Catalog \Api \ProductAttributeRepositoryInterface ;
10
11
use Magento \Catalog \Model \Product \Attribute \Source \Status ;
11
12
use Magento \Catalog \Model \Product \Type ;
12
13
use Magento \Catalog \Model \Product \Visibility ;
19
20
20
21
/** @var ObjectManager $objectManager */
21
22
$ objectManager = Bootstrap::getObjectManager ();
23
+
24
+ /** @var ProductAttributeRepositoryInterface $productAttributeRepository */
25
+ $ productAttributeRepository = $ objectManager ->get (ProductAttributeRepositoryInterface::class);
26
+ $ attribute = $ productAttributeRepository ->get ('test_searchable_attribute ' );
27
+
22
28
/** @var ProductRepositoryInterface $productRepository */
23
29
$ productRepository = $ objectManager ->get (ProductRepositoryInterface::class);
24
30
/** @var ProductFactory $productFactory */
You can’t perform that action at this time.
0 commit comments