File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Shipping/Test/Unit/Model/Shipping Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ public function testRequestToShipment($regionId)
104
104
$ order = $ this ->getMockBuilder (\Magento \Sales \Model \Order::class)
105
105
->disableOriginalConstructor ()
106
106
->getMock ();
107
- $ this ->user ->expects ($ this ->exactly ( 2 ))->method ('getFirstname ' )->willReturn ('John ' );
108
- $ this ->user ->expects ($ this ->exactly ( 2 ))->method ('getLastname ' )->willReturn ('Doe ' );
107
+ $ this ->user ->expects ($ this ->atLeastOnce ( ))->method ('getFirstname ' )->willReturn ('John ' );
108
+ $ this ->user ->expects ($ this ->atLeastOnce ( ))->method ('getLastname ' )->willReturn ('Doe ' );
109
109
$ this ->user ->expects ($ this ->once ())->method ('getName ' )->willReturn ('John Doe ' );
110
110
$ this ->user ->expects ($ this ->once ())->method ('getEmail ' )->willReturn ('admin@admin.test.com ' );
111
111
$ shippingMethod = $ this ->getMockBuilder (\Magento \Framework \DataObject::class)
@@ -170,7 +170,7 @@ public function testRequestToShipmentLocalizedException($isShipmentCarrierNotNul
170
170
->disableOriginalConstructor ()
171
171
->setMethods (['getCarrierCode ' ])
172
172
->getMock ();
173
- $ order ->expects ($ this ->exactly ( 2 ))
173
+ $ order ->expects ($ this ->atLeastOnce ( ))
174
174
->method ('getShippingMethod ' )
175
175
->with (true )
176
176
->willReturn ($ shippingMethod );
You can’t perform that action at this time.
0 commit comments