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 88namespace Magento \Sales \Test \Unit \Model \Order ;
99
1010use Magento \Framework \Exception \LocalizedException ;
11- use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
1211use Magento \Sales \Model \Convert \Order ;
1312use Magento \Sales \Model \Convert \OrderFactory ;
1413use Magento \Sales \Model \Order \Item ;
@@ -52,8 +51,6 @@ class ShipmentFactoryTest extends TestCase
5251 */
5352 protected function setUp (): void
5453 {
55- $ objectManager = new ObjectManager ($ this );
56-
5754 $ this ->converter = $ this ->createPartialMock (
5855 Order::class,
5956 ['toShipment ' , 'itemToShipmentItem ' ]
@@ -69,12 +66,9 @@ protected function setUp(): void
6966 ['create ' ]
7067 );
7168
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
7872 );
7973 }
8074
You can’t perform that action at this time.
0 commit comments