File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed
app/code/Magento/CatalogImportExport/Test/Unit/Model/Import Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,14 @@ protected function setUp()
83
83
84
84
$ categoryColFactory ->method ('create ' )->will ($ this ->returnValue ($ categoryCollection ));
85
85
86
- $ categoryFactory = $ this ->getMockBuilder ('Magento\Catalog\Model\CategoryFactory ' )
87
- ->disableOriginalConstructor ()
88
- ->getMock ();
86
+ $ categoryFactory = $ this ->getMock (
87
+ 'Magento\Catalog\Model\CategoryFactory ' ,
88
+ ['create ' ],
89
+ [],
90
+ '' ,
91
+ false
92
+ );
93
+
89
94
$ categoryFactory ->method ('create ' )->will ($ this ->returnValue ($ childCategory ));
90
95
91
96
$ this ->categoryProcessor =
Original file line number Diff line number Diff line change @@ -301,10 +301,14 @@ protected function setUp()
301
301
$ this ->transactionManager =
302
302
$ this ->getMockBuilder ('\Magento\Framework\Model\Resource\Db\TransactionManagerInterface ' )
303
303
->getMock ();
304
- $ this ->catalogProductFactory =
305
- $ this ->getMockBuilder ('\Magento\Catalog\Model\ProductFactory ' )
306
- ->disableOriginalConstructor ()
307
- ->getMock ();
304
+ $ this ->catalogProductFactory = $ this ->getMock (
305
+ '\Magento\Catalog\Model\ProductFactory ' ,
306
+ ['create ' ],
307
+ [],
308
+ '' ,
309
+ false
310
+ );
311
+
308
312
$ this ->taxClassProcessor =
309
313
$ this ->getMockBuilder ('\Magento\CatalogImportExport\Model\Import\Product\TaxClassProcessor ' )
310
314
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments