File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
app/code/Magento/Sales/Test/Unit/Model/Order Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \Sales \Test \Unit \Model \Order ;
9
9
10
10
use Magento \Framework \Exception \LocalizedException ;
11
- use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
12
11
use Magento \Sales \Model \Convert \Order ;
13
12
use Magento \Sales \Model \Convert \OrderFactory ;
14
13
use Magento \Sales \Model \Order \Item ;
@@ -52,8 +51,6 @@ class ShipmentFactoryTest extends TestCase
52
51
*/
53
52
protected function setUp (): void
54
53
{
55
- $ objectManager = new ObjectManager ($ this );
56
-
57
54
$ this ->converter = $ this ->createPartialMock (
58
55
Order::class,
59
56
['toShipment ' , 'itemToShipmentItem ' ]
@@ -69,12 +66,9 @@ protected function setUp(): void
69
66
['create ' ]
70
67
);
71
68
72
- $ this ->subject = $ objectManager ->getObject (
73
- ShipmentFactory::class,
74
- [
75
- 'convertOrderFactory ' => $ convertOrderFactory ,
76
- 'trackFactory ' => $ this ->trackFactory
77
- ]
69
+ $ this ->subject = new ShipmentFactory (
70
+ $ convertOrderFactory ,
71
+ $ this ->trackFactory
78
72
);
79
73
}
80
74
You can’t perform that action at this time.
0 commit comments