File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
app/code/Magento/Catalog/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ class ProductTest extends \PHPUnit\Framework\TestCase
79
79
*/
80
80
protected $ _priceInfoMock ;
81
81
82
+ /**
83
+ * @var \Magento\CatalogInventory\Model\FilterCustomAttribute|\PHPUnit_Framework_MockObject_MockObject
84
+ */
85
+ private $ filterCustomAttribute ;
86
+
82
87
/**
83
88
* @var \Magento\Store\Model\Store|\PHPUnit_Framework_MockObject_MockObject
84
89
*/
@@ -375,6 +380,10 @@ protected function setUp()
375
380
->method ('create ' )
376
381
->willReturn ($ this ->extensionAttributes );
377
382
383
+ $ this ->filterCustomAttribute = $ this ->createTestProxy (
384
+ \Magento \CatalogInventory \Model \FilterCustomAttribute::class
385
+ );
386
+
378
387
$ this ->objectManagerHelper = new ObjectManagerHelper ($ this );
379
388
$ this ->model = $ this ->objectManagerHelper ->getObject (
380
389
\Magento \Catalog \Model \Product::class,
@@ -404,7 +413,8 @@ protected function setUp()
404
413
'_filesystem ' => $ this ->filesystemMock ,
405
414
'_collectionFactory ' => $ this ->collectionFactoryMock ,
406
415
'data ' => ['id ' => 1 ],
407
- 'eavConfig ' => $ this ->eavConfig
416
+ 'eavConfig ' => $ this ->eavConfig ,
417
+ 'filterCustomAttribute ' => $ this ->filterCustomAttribute
408
418
]
409
419
);
410
420
}
You can’t perform that action at this time.
0 commit comments