File tree Expand file tree Collapse file tree 5 files changed +5
-13
lines changed Expand file tree Collapse file tree 5 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
- namespace Magento \CatalogInventory \Model ;
6
+ namespace Magento \Catalog \Model ;
7
7
8
8
/**
9
9
* Filter custom attributes for product using the blacklist
Original file line number Diff line number Diff line change 10
10
use Magento \Catalog \Api \Data \ProductInterface ;
11
11
use Magento \Catalog \Api \ProductLinkRepositoryInterface ;
12
12
use Magento \Catalog \Model \Product \Attribute \Backend \Media \EntryConverterPool ;
13
- use Magento \CatalogInventory \Model \FilterProductCustomAttribute ;
13
+ use Magento \Catalog \Model \FilterProductCustomAttribute ;
14
14
use Magento \Framework \Api \AttributeValueFactory ;
15
15
use Magento \Framework \App \Filesystem \DirectoryList ;
16
16
use Magento \Framework \App \ObjectManager ;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class ProductTest extends \PHPUnit\Framework\TestCase
80
80
protected $ _priceInfoMock ;
81
81
82
82
/**
83
- * @var \Magento\CatalogInventory \Model\FilterProductCustomAttribute|\PHPUnit_Framework_MockObject_MockObject
83
+ * @var \Magento\Catalog \Model\FilterProductCustomAttribute|\PHPUnit_Framework_MockObject_MockObject
84
84
*/
85
85
private $ filterCustomAttribute ;
86
86
@@ -381,7 +381,7 @@ protected function setUp()
381
381
->willReturn ($ this ->extensionAttributes );
382
382
383
383
$ this ->filterCustomAttribute = $ this ->createTestProxy (
384
- \Magento \CatalogInventory \Model \FilterProductCustomAttribute::class
384
+ \Magento \Catalog \Model \FilterProductCustomAttribute::class
385
385
);
386
386
387
387
$ this ->objectManagerHelper = new ObjectManagerHelper ($ this );
Original file line number Diff line number Diff line change 8
8
namespace Magento \CatalogInventory \Model \Plugin ;
9
9
10
10
use Magento \Catalog \Model \Product \Attribute \Repository ;
11
- use Magento \CatalogInventory \Model \FilterProductCustomAttribute as Filter ;
11
+ use Magento \Catalog \Model \FilterProductCustomAttribute as Filter ;
12
12
13
13
class FilterCustomAttribute
14
14
{
Original file line number Diff line number Diff line change 35
35
<type name =" Magento\Catalog\Model\Product\Attribute\Repository" >
36
36
<plugin name =" filterCustomAttribute" type =" Magento\CatalogInventory\Model\Plugin\FilterCustomAttribute" />
37
37
</type >
38
- <type name =" Magento\CatalogInventory\Model\Plugin\FilterCustomAttribute" >
39
- <arguments >
40
- <argument name =" filter" xsi : type =" object" >Magento\CatalogInventory\Model\FilterCustomAttribute</argument >
41
- </arguments >
42
- </type >
43
38
<type name =" Magento\Catalog\Model\FilterProductCustomAttribute" >
44
39
<arguments >
45
40
<argument name =" blackList" xsi : type =" array" >
81
76
</arguments >
82
77
</type >
83
78
<type name =" Magento\Catalog\Model\Product" >
84
- <arguments >
85
- <argument name =" filter" xsi : type =" object" >Magento\Catalog\Model\FilterProductCustomAttribute</argument >
86
- </arguments >
87
79
<plugin name =" catalogInventoryAfterLoad" type =" Magento\CatalogInventory\Model\Plugin\AfterProductLoad" />
88
80
</type >
89
81
<type name =" Magento\Catalog\Model\Product\Action" >
You can’t perform that action at this time.
0 commit comments