File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dev/tests/integration/testsuite/Magento/Framework/Search/_files Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 19
19
$ objectManager = Bootstrap::getObjectManager ();
20
20
21
21
/** @var \Magento\Catalog\Api\ProductAttributeRepositoryInterface $attributeRepository */
22
- $ attributeRepository = $ objectManager ->get (ProductAttributeRepositoryInterface::class);
22
+ $ attributeRepository = $ objectManager ->create (ProductAttributeRepositoryInterface::class);
23
23
$ attribute = $ attributeRepository ->get ('tax_class_id ' );
24
24
$ attribute ->setIsFilterableInSearch (true );
25
- $ attributeRepository ->save ($ attribute );
25
+ $ attribute ->save ();
26
26
27
27
/** @var SearchCriteriaBuilder $searchCriteriaBuilder */
28
28
$ searchCriteriaBuilder = $ objectManager ->create (SearchCriteriaBuilder::class);
You can’t perform that action at this time.
0 commit comments