@@ -270,7 +270,8 @@ public function testDispatchWithDefaultCustomerGroupId()
270270 $ this ->quoteMock ->expects ($ this ->exactly (2 ))
271271 ->method ('getCustomerGroupId ' )
272272 ->willReturn ('customerGroupId ' );
273- $ this ->customerMock ->expects ($ this ->exactly (2 ))->method ('getId ' )->willReturn ('1 ' );
273+ $ this ->customerMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ('1 ' );
274+
274275 /** Assertions */
275276 $ this ->quoteAddressMock ->expects ($ this ->once ())
276277 ->method ('setPrevQuoteCustomerGroupId ' )
@@ -323,7 +324,6 @@ public function testDispatchWithCustomerCountryInEU()
323324 ->method ('setPrevQuoteCustomerGroupId ' )
324325 ->with ('customerGroupId ' );
325326
326- $ this ->customerMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ('1 ' );
327327 $ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomerGroupId ' )->with ('customerGroupId ' );
328328 $ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomer ' )->with ($ this ->customerMock );
329329 $ this ->customerDataFactoryMock ->expects ($ this ->any ())
@@ -431,8 +431,6 @@ public function testDispatchWithEmptyShippingAddress()
431431 ->method ('setPrevQuoteCustomerGroupId ' )
432432 ->with ('customerGroupId ' );
433433
434- $ this ->customerMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ('1 ' );
435-
436434 $ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomerGroupId ' )->with ('customerGroupId ' );
437435 $ this ->quoteMock ->expects ($ this ->once ())->method ('setCustomer ' )->with ($ this ->customerMock );
438436 $ this ->customerDataFactoryMock ->expects ($ this ->any ())
0 commit comments