File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Test/Unit/Model/ResourceModel/Order/Shipment
Shipping/Test/Unit/Model/Order Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ public function addData(array $data)
214
214
}
215
215
216
216
//@codeCoverageIgnoreStart
217
+
217
218
/**
218
219
* Returns track_number
219
220
*
@@ -414,5 +415,6 @@ public function setExtensionAttributes(\Magento\Sales\Api\Data\ShipmentTrackExte
414
415
{
415
416
return $ this ->_setExtensionAttributes ($ extensionAttributes );
416
417
}
418
+
417
419
//@codeCoverageIgnoreEnd
418
420
}
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public function setUp()
111
111
112
112
public function testProcessRelations ()
113
113
{
114
- $ this ->shipmentMock ->expects ($ this ->once ( ))
114
+ $ this ->shipmentMock ->expects ($ this ->exactly ( 3 ))
115
115
->method ('getId ' )
116
116
->willReturn ('shipment-id-value ' );
117
117
$ this ->shipmentMock ->expects ($ this ->exactly (2 ))
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function testLookup()
52
52
'Magento\Shipping\Model\Order\Track ' ,
53
53
['carrierFactory ' => $ carrierFactory , 'shipmentRepository ' => $ shipmentRepository ]
54
54
);
55
-
55
+ $ model -> setParentId ( 1 );
56
56
$ this ->assertEquals ('trackingInfo ' , $ model ->getNumberDetail ());
57
57
}
58
58
}
You can’t perform that action at this time.
0 commit comments